On Sat, 7 Feb 2026 11:11:31 +0100
Luis Muñoz Fuente via Remind-fans <[email protected]> wrote:

> REM Feb 13 +7 RUN ls k || mkdir $(date +%Y-%m-%d)_remind_error &

> I run remind .remider on February 7, 2026 and the file k does not
> exist, therefore the folder is created, but the date command fails,
> it creates this folder:

> 2026-February-13_remind_error
> instead of this:
> 2026-02-07_remind_error

Don't forget that Remind runs the body of a reminder through its *own*
substitution filter before executing it.  So Remind itself is replacing
%Y with 2026, %m with February and %d with 13 and the "date" command
never even sees any % signs.

You can pass a % sign through by doubling it up, like this:

  REM Feb 13 +7 RUN ls k || mkdir $(date +%%Y-%%m-%%d)_remind_error &

Or rather than executing "date", you can just have Remind supply
today's date:

  REM Feb 13 +7 RUN ls k || mkdir [$U]_remind_error &

(Recall that $U is shorthand for today())

Regards,

Dianne.

_______________________________________________
Remind-fans mailing list
[email protected]
https://dianne.skoll.ca/mailman/listinfo/remind-fans
Remind is at https://dianne.skoll.ca/projects/remind/

Reply via email to