diff options
author | Kevin Ballard <kevin@sb.org> | 2014-09-19 17:31:34 -0700 |
---|---|---|
committer | Kevin Ballard <kevin@sb.org> | 2014-09-19 17:38:54 -0700 |
commit | 940f264ee6b75e013658d4ba7f6a6dd77ae014d3 (patch) | |
tree | cb14835d78554378343c4464167062ff7a650823 /common.cpp | |
parent | 761be8ab7fb62965b8dc9dfd6ac6451cda578ad0 (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 'common.cpp')
0 files changed, 0 insertions, 0 deletions