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

Re: TRY_BLOCK_ERROR and exit status



On Tue, 25 Nov 2014 00:01:23 -0800
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> } Given that "always" isn't all that widely used, changing it to return
> } the last status of the always block might also work.  However, it
> } doesn't look necessary to go that far.
> 
> Do you mean return the last status of the always block only in the case
> where errflag is nonzero at the end of the try block?

Yes, we wouldn't want to affect non-error cases.

> I agree it isn't necessary to go that far.  This?

That seems reasonable.

pws



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