From: Rami3L Date: Sat, 2 May 2020 04:14:19 +0000 (+0800) Subject: Fix: BSD expr syntax error on empty $NNNLVL (#546) X-Git-Tag: v3.2~83 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=45a69f1cbf99deb614e21ff3b0a1b48169e1bffc;p=nnn.git Fix: BSD expr syntax error on empty $NNNLVL (#546) --- diff --git a/misc/quitcd/quitcd.fish b/misc/quitcd/quitcd.fish index 9b3061c4..5048853a 100644 --- a/misc/quitcd/quitcd.fish +++ b/misc/quitcd/quitcd.fish @@ -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