![提醒:未定义变量](https://linux22.com/image/1605318/%E6%8F%90%E9%86%92%EF%BC%9A%E6%9C%AA%E5%AE%9A%E4%B9%89%E5%8F%98%E9%87%8F.png)
在 ~/.reminders 中输入以下内容(由提醒) 会导致Undefined variable: EXT
显示:
REM Oct 1 2019 AT 17:30 +15 DURATION 1:0 MSG %"Fw: [EXT] some title body%" [t()]
有没有一种自动退出标题的方法?
答案1
我在邮件列表存档:
REM Oct 1 2019 AT 17:30 +15 DURATION 1:0 MSG %"Fw: ["["]EXT["]"] some title body%" [t()]
或者如消息后面所述。设置变量并使用它。
# 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()]
我刚刚发现的另一个选择是使用char()
函数:
REM Oct 1 2019 AT 17:30 +15 DURATION 1:0 MSG %"Fw: [char(91)]EXT[char(93)] some title body%" [t()]```