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)
- X-seq: zsh-workers 50968
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Philippe Altherr <philippe.altherr@xxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] More ERR_EXIT (was Re: Tests RE behavior of ERR_EXIT)
- Date: Mon, 14 Nov 2022 17:11:33 -0800
- Archived-at: <https://zsh.org/workers/50968>
- In-reply-to: <CAH+w=7YpsK2T6q1=-PAKkgyHov68U5YcdryLGhvBjrSYcYk7tQ@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAGdYchsPpEMNwWFtukBS1ZzWob_hZOm8Mnnmp9Uey2T4pWs63g@mail.gmail.com> <CAGdYchu66aYu+3yzYGtMnNcT6GcWziWe9YWNqOv5_T=JpCynRg@mail.gmail.com> <CAH+w=7YD3jXE5Yy+J-dQVNVeJagHPH6HeFsavKjzAPJyaGDGWA@mail.gmail.com> <CAGdYchvTBX8o5PZgZwDy6C6TRqyFrd+M7A-dXJHP3t1zAuRHdQ@mail.gmail.com> <CAH+w=7YpsK2T6q1=-PAKkgyHov68U5YcdryLGhvBjrSYcYk7tQ@mail.gmail.com>
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