[Remind-Fans] Can't compute trigdate for bridging days

Dianne Skoll dianne at skoll.ca
Fri Sep 25 20:05:41 EDT 2020


On 2020-09-25 19:53, Jens Mueller wrote:

> rem mon SKIP SATISFY [isomitted(trigdate()+1)] msg Bridging day
> rem fri SKIP SATISFY [isomitted(trigdate()-1)] msg Bridging day

That won't work.

One reason it can fail is if there are no omitted days around today
or at any point in the future.  Try this:

echo 'mon SKIP SATISFY [isomitted(trigdate()+1)] MSG Bridging' | remind -dtx -

WARNING: It will produce a lot of output.

The SATISFY clause will search fruitlessly for an omitted Tuesday and will
give up after the SATISFY iteration limit.

You'll have to rewrite the logic as follows:

IFTRIG Mon SKIP
   IF isomitted(trigdate()+1)
       REM [trigdate()] MSG Bridging Day
   ENDIF
ENDIF

IFTRIG Fri SKIP
   IF isomitted(trigdate()-1)
       REM [trigdate()] MSG Bridging Day
   ENDIF
ENDIF

Regards,

Dianne.


More information about the Remind-fans mailing list