2

Following entry in ~/.reminders (used by remind) causes Undefined variable: EXT to be displayed:

REM Oct 1 2019 AT 17:30 +15 DURATION 1:0 MSG %"Fw: [EXT] some title body%" [t()]

Is there an automatic way to escape the title?

1 Answer 1

1

I've found the answer in the mailing list archive:

REM Oct 1 2019 AT 17:30 +15 DURATION 1:0 MSG %"Fw: ["["]EXT["]"] some title body%" [t()]

Or as described later in the message. Set variable and use it instead.

# set variable EXT containing string [EXT]
SET EXT "[EXT]"
# use variable EXT -> expand variable EXT to string [EXT]
REM Oct 1 2019 AT 17:30 +15 DURATION 1:0 MSG %"Fw: [EXT] some title body%" [t()]

Another option I've just discovered is using char() function:

REM Oct 1 2019 AT 17:30 +15 DURATION 1:0 MSG %"Fw: [char(91)]EXT[char(93)] some title body%" [t()]```

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .