Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: `return` does not behave properly under `!`
On Wed, Dec 7, 2022 at 8:17 AM Peter Stephenson
<p.w.stephenson@xxxxxxxxxxxx> wrote:
>
> I agree with Michael's argument that shows that logically it
> can't have an effect on the status, whatever you want.
That's going to be ugly, because "return" is implemented as a builtin
that propagates lastval. One level out, at the WC_SUBLIST_NOT
implementation, it has no idea that lastval came from "return" rather
than from any arbitrary sublist.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author