Closed forthrin closed 5 years ago
This seems to work:
terminal-notifier -title "\-123" -message 456
This escapes the hyphen so it's treated as part of the string
Several other ASCII characters must also be escaped. (Remove four or the backslahes for comparison.)
$ for f in 34 40 42 45 60 91 92 123; do terminal-notifier -title $(printf "\\\\\x$(printf %x $f)") -message $f; done
@julienXX: Shouldn't the application escape these automatically? It's not the shell's responsibility, really.
Other observations regarding string arguments:
[X] I looked in closed issues and it has not already been answered
[X] My issue appeared with a terminal-notifier update
[X] I'm using a tool that uses terminal-notifier (guard-notifier, node-notifier...)
macOS 10.13
terminal-notifier 2.0.0
Homebrew
Example: