summaryrefslogtreecommitdiff
path: root/Src/loop.c
diff options
context:
space:
mode:
authorPhilippe Altherr <philippe.altherr@gmail.com>2022-12-03 21:46:42 -0800
committerBart Schaefer <schaefer@zsh.org>2022-12-03 21:46:42 -0800
commit8086f106159c2e9fc562b5ce88b8aefdb5fe5d23 (patch)
tree558ea5db4b0546a466d62389d0d058915d674573 /Src/loop.c
parentab9c579ef9a1ad6482267719f5d031f6a5dbf24e (diff)
downloadzsh-8086f106159c2e9fc562b5ce88b8aefdb5fe5d23.tar.gz
zsh-8086f106159c2e9fc562b5ce88b8aefdb5fe5d23.zip
51094: consistent use of bit-manipulation for noerrexit value changes
Diffstat (limited to 'Src/loop.c')
-rw-r--r--Src/loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/loop.c b/Src/loop.c
index 61543ed73..88c55dd1a 100644
--- a/Src/loop.c
+++ b/Src/loop.c
@@ -428,7 +428,7 @@ execwhile(Estate state, UNUSED(int do_exec))
} else {
for (;;) {
state->pc = loop;
- noerrexit = NOERREXIT_EXIT | NOERREXIT_RETURN;
+ noerrexit |= NOERREXIT_EXIT | NOERREXIT_RETURN;
/* In case the test condition is a functional no-op,
* make sure signal handlers recognize ^C to end the loop. */