From 3a0c8bae77a15976f6b74ed92d57127f7d6cdca6 Mon Sep 17 00:00:00 2001 From: rupa Date: Wed, 12 Sep 2012 03:38:45 +0200 Subject: Don't quote ${EDITOR:-vi} Attached is a trivial patch that removes the quotes from the line that invokes $EDITOR. It's perfectly cromulent to set $EDITOR to something with spaces in it, so when we evaluate this one we want it evaluated bare. For example security nerds might want EDITOR='vim -n' if they are scared of swap files, and that breaks if we quote there. --- src/password-store.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/password-store.sh b/src/password-store.sh index fe306b7..a89be8d 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -226,7 +226,7 @@ case "$command" in fi action="Edited" fi - "${EDITOR:-vi}" "$tmp_file" + ${EDITOR:-vi} "$tmp_file" while ! gpg -q -e -r "$ID" -o "$passfile" --yes "$tmp_file"; do echo "GPG encryption failed. Retrying." sleep 1 -- cgit v1.2.3