From 6e3de426f79654457cfad5c86aaba404e57a4c84 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Tue, 21 Apr 2020 13:02:25 +0100 Subject: [PATCH] bin/wakey.zsh: Quote arguments to `notify-send' for other shells. `zsh' itself is fine here; but I'm making this portable to `bash'. --- bin/wakey.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/wakey.zsh b/bin/wakey.zsh index cba071b..bb6e908 100644 --- a/bin/wakey.zsh +++ b/bin/wakey.zsh @@ -53,7 +53,7 @@ __wakey_precmd () { *) icon=dialog-warning head="Command FAILED (rc = $rc)" ;; esac cmd=${__wakey_cmd//&/&}; cmd=${cmd///>} - notify-send -c Wakey -i $icon -t 5000 $head $cmd + notify-send -c Wakey -i $icon -t 5000 "$head" "$cmd" esac __wakey_start=nil ;; -- 2.11.0