I am finding that '%s' passed to a $shell(...) command must be escaped when calling from Preset on reply, but not when calling Preset new. Example:
[tickler]
Comment = Automated Tickler List Experiment
Attributes = Blurb, TickleDate
Type TickleDate = date
Required Attributes = Blurb
Preset TickleDate = $shell(date -d 'now + 30 days' '+%s')
Preset on reply TickleDate = $shell(date -d 'now + 30 days' '+%%s')
Date Format = %Y-%m-%d
Note that I have to escape the Preset on Reply's shell command argument with double percent signs, but not on Preset new. The configuration I have provided here does work and correctly overrides the output per the Date Format spec. This scenario should be easy to reproduce.
It could be I am doing something incorrectly, but it seems to me that there is no reason why the calls should need to be handled differently. I can live with this for the moment, but I do hope it is fixed in a later release so that $shell calls have consistent syntax and semantics.
|