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.
This commit is contained in:
@@ -27,7 +27,7 @@ for param in "$@" ; do
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
"${BLACKBOX_HOME}/blackbox_edit_start" "$unencrypted_file"
|
"${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"
|
"${BLACKBOX_HOME}/blackbox_edit_end" "$unencrypted_file"
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user