about summary refs log tree commit diff
path: root/Src/loop.c
diff options
context:
space:
mode:
authorPhilippe Altherr <philippe.altherr@gmail.com>2022-12-03 20:35:58 -0800
committerBart Schaefer <schaefer@zsh.org>2022-12-03 20:35:58 -0800
commitfda6fd9513ffdbd75c490e8e55ce33f370a9bd17 (patch)
tree49ee5e9338dd9128f36e4736be41984eb7f628f7 /Src/loop.c
parent23dc19f005b6a9ac0740b46155f14dbcfa697421 (diff)
downloadzsh-fda6fd9513ffdbd75c490e8e55ce33f370a9bd17.tar.gz
zsh-fda6fd9513ffdbd75c490e8e55ce33f370a9bd17.tar.xz
zsh-fda6fd9513ffdbd75c490e8e55ce33f370a9bd17.zip
51001: fix for ERR_EXIT with "always" blocks; update tests
Diffstat (limited to 'Src/loop.c')
-rw-r--r--Src/loop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/loop.c b/Src/loop.c
index db5b3e097..7c3e04b8a 100644
--- a/Src/loop.c
+++ b/Src/loop.c
@@ -793,6 +793,7 @@ exectry(Estate state, int do_exec)
     cmdpop();
     popheap();
     state->pc = end;
+    this_noerrexit = 1;
 
     return endval;
 }