aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test3.in
diff options
context:
space:
mode:
authorGravatar Kevin Ballard <kevin@sb.org>2014-08-22 18:05:28 -0700
committerGravatar Kevin Ballard <kevin@sb.org>2014-08-29 12:22:35 -0700
commit130619d6b07c691b1f34c56120020adaff09c49a (patch)
treedfc1d1f700d9707cd17494edfdfef37e81bd544b /tests/test3.in
parent71ab40e53690cd89fcb013362404ef7578a5a6fe (diff)
Fix $SHLVL
Due to being read-only, SHLVL wasn't being incremented properly for recursive invocations of fish.
Diffstat (limited to 'tests/test3.in')
-rw-r--r--tests/test3.in4
1 files changed, 4 insertions, 0 deletions
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