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

Re: [PATCH] More ERR_EXIT (was Re: Tests RE behavior of ERR_EXIT)



On Sun, Nov 13, 2022 at 8:45 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> the changes in loop.c from workers/50897 may be redundant with those
> at line 1445 of exec.c from workers/50928 and 50929.

If this is the case (and it appears to be), then there's no point in
bashing through if/case/for/while/repeat/select individually -- the
only case we have to fix is this one:

 (
   setopt ERR_EXIT
   { { { false && true }
        } always { print INSIDE: $? } }
   print OUTSIDE
 )

The above should print "INSIDE: 1" (thus not exit) and then exit
without printing OUTSIDE.




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