]> Sergey Matveev's repositories - nnn.git/commitdiff
fix jump cd to use seperate params (#1156)
authorAssaf Ben-Amitai <assaf758@gmail.com>
Sat, 4 Sep 2021 23:50:31 +0000 (02:50 +0300)
committerGitHub <noreply@github.com>
Sat, 4 Sep 2021 23:50:31 +0000 (05:20 +0530)
plugins/autojump

index 32a1f1f5925a4b288a90235300e7f2bf3504353b..197f8c13512b5d63253bba552baaab9668a50d7d 100755 (executable)
@@ -22,7 +22,8 @@ fi
 if type jump >/dev/null 2>&1; then
     printf "jump to : "
     IFS= read -r line
-    odir="$(jump cd "${line}")"
+    # shellcheck disable=SC2086
+    odir="$(jump cd ${line})"
     printf "%s" "0c$odir" > "$NNN_PIPE"
 elif type autojump >/dev/null 2>&1; then
     printf "jump to : "