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

Re: zsh 5.2-test-1



On Mon, 5 Dec 2016 10:28:02 +0100
Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
> zira% echo $ZSH_VERSION
> 5.2-test-1
> zira% set -e; for i in a b; do echo $i; false && true; done; echo OK
> a
> b
> zsh: exit 1     zsh -f

The special thing about this case appears to be that the status 1 is
still in effect when we get to the "done".  So we exit at the end of the
"for" loop.  We need to suppress evaluation of the status at that point
by propagating the information up without breaking anything else, which
is difficult.  I don't think we currently have a way of doing this.

pws



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