I am trying to allow triggers to send text to notify-send in Linux. I have tried a couple of different trigger /defs that have sort of worked but not cleanly. My first /def was: /def -mregexp -F -t"(. says, .)" notify_say = /sys notify-send ' $[world_info()]' ' %P1' This works until any apostrophe ' gets me the following errors: sh: -c: line 1: unexpected EOF while looking for matching "' sh: -c: line 2: syntax error: unexpected end of file sh: -c: line 1: unexpected EOF while looking for matching"'...
I am trying to allow triggers to send text to notify-send in Linux. I have tried a couple of different trigger /defs that have sort of worked but not cleanly. My first /def was: /def -mregexp -F -t"(.* says, .*)" notify_say = /sys notify-send ' $[world_info()]' ' %P1' This works until any apostrophe ' gets me the following errors: sh: -c: line 1: unexpected EOF while looking for matching `"' sh: -c: line 2: syntax error: unexpected end of file sh: -c: line 1: unexpected EOF while looking for matching...