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

Re: [PATCH] Remove NOERREXIT_UNTIL_EXEC



On Fri, Dec 2, 2022 at 4:31 PM Philippe Altherr
<philippe.altherr@xxxxxxxxx> wrote:
>
> The noerrexit NOERREXIT_UNTIL_EXEC bit is never set and can therefore be removed. In other words the patch only removes dead code.

That explains MY confusion over the meaning of NOERREXIT_UNTIL_EXEC
when you first asked about it:  The use for which it was originally
intended had gone away.

> One thing that distinguishes the NOERREXIT_UNTIL_EXEC bit from the other noerrexit bits is that it seems intended for the caller(s) of the function that sets it, while the other bits are intended for the callee(s). This is similar to today's this_noerrexit variable.

Moot point now, but I believe it was still intended for the callees --
the original bug being fixed involved error state propagating down
into for/select loops.

> QUESTION: Should NOERREXIT_SIGNAL's value be changed to 4 (from 8) since the value 4 is no longer used by NOERREXIT_UNTIL_EXEC?

I don't think that's necessary.




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