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

Re: [PATCH] ? Parse error does not always set $? (Was: Bug? Output not flushed?)



On Fri, Sep 15, 2023 at 3:22 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> Is there any reason parse_string() should be discarding errflag?

There seem to be a couple of things that might be affected by this,
although the only one I can readily reproduce is with "trap":

Before:
zsh:1: parse error near `}'
zsh:trap:1: couldn't parse trap command

After:
zsh:1: parse error near `}'

Probably better to go at it a different way.  Ignore workers/52149.




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