【发布时间】:2018-03-11 18:26:28
【问题描述】:
我想使用终端通知器在桌面通知中发送“多字符串/句子”作为消息
通过终端很容易,它的工作原理如下
命令:
terminal-notifier -title 'testing' -message 'multi string with spaces'
输出
但是当我通过 shell 脚本做同样的事情时,它不会工作:(
shell 脚本:
msg="multi string with space"
echo $msg
terminal-notifier -title 'testing' -message $msg
输出
所以基本上它不会占用空格后的单词/字符...
有什么想法/答案吗?
【问题讨论】:
标签: shell terminal scripting notifications desktop-application