我想做这个
while read line
do
echo $line;
notify-send $line;
done < "0.txt"
其中 0.txt 是一些有 10 行的文件
但问题是
notify-send $line;
导致选项数量无效,以及
notify-send "aasdasdsd"
工作正常
最佳答案
bash 执行 Shell Parameter Expansion之前 Word Splitting .
notify-send "$line"
关于linux - 通知发送导致选项数量无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8850995/