aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test3.out
diff options
context:
space:
mode:
authorGravatar Kevin Ballard <kevin@sb.org>2014-09-19 17:31:34 -0700
committerGravatar Kevin Ballard <kevin@sb.org>2014-09-19 17:38:54 -0700
commit940f264ee6b75e013658d4ba7f6a6dd77ae014d3 (patch)
treecb14835d78554378343c4464167062ff7a650823 /tests/test3.out
parent761be8ab7fb62965b8dc9dfd6ac6451cda578ad0 (diff)
Decrement SHLVL when running `exec`
`exec` removes fish from the shell "stack", so SHLVL needs to be decremented to match. This means `exec fish` will result in the same SHLVL in the new fish instance. Also tweak the SHLVL logic to interpret an environment SHLVL of "3foo" as garbage instead of as the value "3". Fixes #1693.
Diffstat (limited to 'tests/test3.out')
-rw-r--r--tests/test3.out5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test3.out b/tests/test3.out
index 50563c05..c6a21905 100644
--- a/tests/test3.out
+++ b/tests/test3.out
@@ -23,3 +23,8 @@ Missing:
Missing:
SHLVL: 1
SHLVL: 2
+SHLVL: 1
+SHLVL: 1
+SHLVL: 1
+SHLVL: 4
+SHLVL: 4