diff options
author | Peter Stephenson <pws@zsh.org> | 2016-12-05 12:29:23 +0000 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2016-12-05 12:29:23 +0000 |
commit | 0e4aa6f2f64fb276537adecfe755a752a3fcccb1 (patch) | |
tree | 969b5cf504a28cf9b48fbfff3170b187d7d79dfb /Src | |
parent | c03228f9ed28dfaa9ded49eabb93c04def5ac547 (diff) | |
download | zsh-0e4aa6f2f64fb276537adecfe755a752a3fcccb1.tar.gz zsh-0e4aa6f2f64fb276537adecfe755a752a3fcccb1.tar.xz zsh-0e4aa6f2f64fb276537adecfe755a752a3fcccb1.zip |
Additional case for ERR_RETURN and ERR_EXIT.
Don't trigger just because status is non-zero at end of current shell group.
Diffstat (limited to 'Src')
-rw-r--r-- | Src/exec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/exec.c b/Src/exec.c index 6e197ddf2..a439aec7f 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -429,6 +429,7 @@ execcursh(Estate state, int do_exec) cmdpop(); state->pc = end; + this_noerrexit = 1; return lastval; } |