Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Regression / err_return / arithmetic 5.4.x ?



On Sep 15,  7:38pm, Bart Schaefer wrote:
}
} I reverted 97d4bdb and the problem disappears.  Haven't gotten any
} further than that, yet.

Looks like just one case where use of the new bitflags was missed:

diff --git a/Src/loop.c b/Src/loop.c
index 40e3bcb..1013aeb 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 = 1;
+            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. */



Messages sorted by: Reverse Date, Date, Thread, Author