]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix: BSD expr syntax error on empty $NNNLVL (#546)
authorRami3L <rami3l@outlook.com>
Sat, 2 May 2020 04:14:19 +0000 (12:14 +0800)
committerGitHub <noreply@github.com>
Sat, 2 May 2020 04:14:19 +0000 (09:44 +0530)
misc/quitcd/quitcd.fish

index 9b3061c4c0ef179330077a3425d7a2be55e7cfc0..5048853a7c0eacc867c030b08b0be105e5b1ce18 100644 (file)
@@ -4,7 +4,7 @@
 
 function n --description 'support nnn quit and change directory'
     # Block nesting of nnn in subshells
-    if test -n NNNLVL
+    if test -n "$NNNLVL"
         if [ (expr $NNNLVL + 0) -ge 1 ]
             echo "nnn is already running"
             return