about summary refs log tree commit diff
path: root/Src/exec.c
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@zsh.org>2022-11-09 21:37:56 -0800
committerBart Schaefer <schaefer@zsh.org>2022-11-09 21:37:56 -0800
commit1ba8714a7ac665e661c1b3a716ffe2af73d1e443 (patch)
treed70e75c1cf9019781c4dcfdd809ee1fe377525f8 /Src/exec.c
parent61610ea4bdc3e2de11c258017f377db3d1d6d993 (diff)
downloadzsh-1ba8714a7ac665e661c1b3a716ffe2af73d1e443.tar.gz
zsh-1ba8714a7ac665e661c1b3a716ffe2af73d1e443.tar.xz
zsh-1ba8714a7ac665e661c1b3a716ffe2af73d1e443.zip
50928: fix tests for 50897, mention behavior change in NEWS
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/exec.c b/Src/exec.c
index d4e681887..eef40232e 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -1442,6 +1442,8 @@ execlist(Estate state, int dont_change_job, int exiting)
 		    execsimple(state);
 		else
 		    execpline(state, code, ltype, (ltype & Z_END) && exiting);
+		if (unset(ERRRETURN))
+		    this_noerrexit = noerrexit;
 		state->pc = next;
 		goto sublist_done;
 		break;