[Remind-Fans] quotes in a .wyrdrc template

Paul Pelzl pelzlpj at eecs.umich.edu
Wed Oct 31 16:18:34 EDT 2007


On Wed, Oct 31, 2007 at 10:54:48AM +0100, Michael Dunn wrote:
> Could somebody give me a steer for putting quotes inside a reminder
> template in the .wyrdrc file? The following doesn't work, apparently
> because of the %".
> 
> # reminder with prior warning (untimed)
> set template0='REM %mday% %monname% %year% +5 MSG %"XXX%" %b%'
> # reminder with prior warning (timed)
> set template1='REM %mday% %monname% %year% +5 AT %hour%:%min% DURATION
> 1:00 MSG %"XXX%" %b%"'

wyrdrc string syntax follows that of OCaml, which means a string must be
enclosed in double-quotes and embedded double-quote characters must be
backslash-escaped.  So try this:

set template0="REM %mday% %monname% %year% +5 MSG %\"XXX\%" %b%"
set template1="REM %mday% %monname% %year% +5 AT %hour%:%min% DURATION 1:00 MSG %\"XXX%\" %b%"

I'm not in a position to test this right now, but I believe it's
correct.

Paul





More information about the Remind-fans mailing list