From 6e3de426f79654457cfad5c86aaba404e57a4c84 Mon Sep 17 00:00:00 2001 Message-Id: <6e3de426f79654457cfad5c86aaba404e57a4c84.1717593308.git.mdw@distorted.org.uk> 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. Organization: Straylight/Edgeware From: Mark Wooding `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 ;; -- [mdw]