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

Re: "break" and functions



On Fri, Mar 29, 2024 at 2:15 PM Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>
> On Fri, Mar 29, 2024 at 7:51 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> > IIRC the entire glob loop finishes and then any (e) actions are
> > applied to the resulting list.
>
> This is not the case

Ah, OK.  I was thinking of order of operations.  E.g. this:

print -l **/*(@e:'x+=($REPLY)':)

is not the same as this:

print -l **/*(e:'x+=($REPLY)':@)




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