From ca2cc76bcd6311c6b25a6901e9100c5fc6daa2ab Mon Sep 17 00:00:00 2001 From: Tor Arvid Lund Date: Wed, 26 Aug 2015 16:15:29 +0200 Subject: [PATCH] Support having an $EDITOR value with arguments If a user has $EDITOR set to e.g "subl --wait", then "$EDITOR" (with quotes) will fail with error "command not found: subl --wait". In other words, it looks for an executable containing the space and the --wait in it. Simply removing the quotes seems to work fine. --- bin/blackbox_edit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/blackbox_edit b/bin/blackbox_edit index ff67ce9..ec8148c 100755 --- a/bin/blackbox_edit +++ b/bin/blackbox_edit @@ -27,7 +27,7 @@ for param in "$@" ; do esac fi "${BLACKBOX_HOME}/blackbox_edit_start" "$unencrypted_file" - "$EDITOR" "$(get_unencrypted_filename "$unencrypted_file")" + $EDITOR "$(get_unencrypted_filename "$unencrypted_file")" "${BLACKBOX_HOME}/blackbox_edit_end" "$unencrypted_file" done