From 63e1587515a945a605b5664153a2124486e4dc0a Mon Sep 17 00:00:00 2001 From: Leonid Shevtsov Date: Mon, 1 Dec 2014 16:25:44 +0200 Subject: [PATCH] Fixes to fish script quoting --- bin/autojump.fish | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/autojump.fish b/bin/autojump.fish index b6635aa..0699417 100644 --- a/bin/autojump.fish +++ b/bin/autojump.fish @@ -19,15 +19,15 @@ else set -x AUTOJUMP_ERROR_PATH ~/.local/share/autojump/errors.log end -if test ! -d "(dirname $AUTOJUMP_ERROR_PATH)" - mkdir -p "(dirname $AUTOJUMP_ERROR_PATH)" +if test ! -d (dirname "$AUTOJUMP_ERROR_PATH") + mkdir -p (dirname "$AUTOJUMP_ERROR_PATH") end # change pwd hook function __aj_add --on-variable PWD status --is-command-substitution; and return if test -f "$AUTOJUMP_ERROR_PATH" - autojump --add (pwd) >/dev/null 2>>$AUTOJUMP_ERROR_PATH & + autojump --add (pwd) >/dev/null 2>>"$AUTOJUMP_ERROR_PATH" & else autojump --add (pwd) >/dev/null & end