diff options
| author | Bart Schaefer <schaefer@zsh.org> | 2022-11-09 21:48:46 -0800 |
|---|---|---|
| committer | Bart Schaefer <schaefer@zsh.org> | 2022-11-09 21:48:46 -0800 |
| commit | 8839e969bf8f3f129d0efd8ecd51505610a1f01b (patch) | |
| tree | 915309c35db1ece85fe5c5ed1b480ad7796ef54e /Src/exec.c | |
| parent | 50928: fix tests for 50897, mention behavior change in NEWS (diff) | |
| download | zsh-8839e969bf8f3f129d0efd8ecd51505610a1f01b.tar zsh-8839e969bf8f3f129d0efd8ecd51505610a1f01b.tar.gz zsh-8839e969bf8f3f129d0efd8ecd51505610a1f01b.tar.bz2 zsh-8839e969bf8f3f129d0efd8ecd51505610a1f01b.tar.lz zsh-8839e969bf8f3f129d0efd8ecd51505610a1f01b.tar.xz zsh-8839e969bf8f3f129d0efd8ecd51505610a1f01b.tar.zst zsh-8839e969bf8f3f129d0efd8ecd51505610a1f01b.zip | |
50929: fix handling of ERR_RETURN bent by 50928.
Diffstat (limited to 'Src/exec.c')
| -rw-r--r-- | Src/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c index eef40232e..ce0c1f1ad 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -1442,7 +1442,7 @@ execlist(Estate state, int dont_change_job, int exiting) execsimple(state); else execpline(state, code, ltype, (ltype & Z_END) && exiting); - if (unset(ERRRETURN)) + if (!locallevel || unset(ERRRETURN)) this_noerrexit = noerrexit; state->pc = next; goto sublist_done; |
