From 130619d6b07c691b1f34c56120020adaff09c49a Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Fri, 22 Aug 2014 18:05:28 -0700 Subject: Fix $SHLVL Due to being read-only, SHLVL wasn't being incremented properly for recursive invocations of fish. --- tests/test3.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/test3.in') diff --git a/tests/test3.in b/tests/test3.in index 1bbacc0e..56cceeb5 100644 --- a/tests/test3.in +++ b/tests/test3.in @@ -233,4 +233,8 @@ echo $testu echo Missing: $testu ../fish -c 'echo Missing: $testu' +# test SHLVL +# use a subshell to ensure a clean slate +env SHLVL= ../fish -c 'echo SHLVL: $SHLVL; ../fish -c \'echo SHLVL: $SHLVL\'' + true -- cgit v1.2.3