瀏覽代碼
Fix: BSD expr syntax error on empty $NNNLVL (#546)
master
Rami3L
GitHub
4 年之前
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: 4AEE18F83AFDEB23
共有
1 個文件被更改,包括
1 次插入 和
1 次删除
-
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 |
|
|
|