mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-11 21:50:57 +01:00
50929: fix handling of ERR_RETURN bent by 50928.
This commit is contained in:
parent
1ba8714a7a
commit
8839e969bf
2 changed files with 3 additions and 1 deletions
|
|
@ -1,5 +1,7 @@
|
||||||
2022-11-09 Bart Schaefer <schaefer@zsh.org>
|
2022-11-09 Bart Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
|
* 50929: Src/exec.c: fix handling of ERR_RETURN bent by 50928.
|
||||||
|
|
||||||
* 50928: News, Src/exec.c, Test/C03traps.ztst: fix tests for 50897,
|
* 50928: News, Src/exec.c, Test/C03traps.ztst: fix tests for 50897,
|
||||||
mention behavior change in NEWS
|
mention behavior change in NEWS
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1442,7 +1442,7 @@ execlist(Estate state, int dont_change_job, int exiting)
|
||||||
execsimple(state);
|
execsimple(state);
|
||||||
else
|
else
|
||||||
execpline(state, code, ltype, (ltype & Z_END) && exiting);
|
execpline(state, code, ltype, (ltype & Z_END) && exiting);
|
||||||
if (unset(ERRRETURN))
|
if (!locallevel || unset(ERRRETURN))
|
||||||
this_noerrexit = noerrexit;
|
this_noerrexit = noerrexit;
|
||||||
state->pc = next;
|
state->pc = next;
|
||||||
goto sublist_done;
|
goto sublist_done;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue