Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zmv exits from function
On Sat, Dec 30, 2023 at 7:43 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> { zmv '(*).SNT' '$1.eml' } always { TRY_BLOCK_ERROR=0 }
>
> So when zmv quits, crashing out of the function is not immediate -- there is further parsing
No, the parsing is all done first: "{ ... } always { ... }" is a full
expression. Zsh "knows" the always-part is coming before it even
starts executing the first block.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author