From 9a6cfd7f07585a98179ae7e272677d9b75e2c581 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sun, 16 Jun 2013 09:32:30 +0200 Subject: [PATCH 1/1] Quoting fix (and a comment added) Signed-off-by: martin f. krafft --- .mutt/reuse-message | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.mutt/reuse-message b/.mutt/reuse-message index f7397ff..6353558 100755 --- a/.mutt/reuse-message +++ b/.mutt/reuse-message @@ -6,7 +6,7 @@ editor= for i in "$@"; do # strip last argument from editor, yuk case "$i" in - ($mailfile) break;; + ("$mailfile") break;; (*) editor="${editor:+$editor }$i";; esac done @@ -23,6 +23,8 @@ cat "$tmpfile" > "$mailfile" if [ -n "$editor" ]; then eval exec "$editor" "$mailfile" + +# the last three replicate mutt's default (cf. manual) elif [ -n "$VISUAL" ]; then eval exec "$VISUAL" "$mailfile" elif [ -n "$EDITOR" ]; then -- 2.39.5