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

Re: Style question: Can this be written in a more elegant way?



On Apr 25,  4:58pm, Marc Chantreux wrote:
}
} what i expect is to treat only the nth element of the list.

Yes, I know, but I explained why that doesn't happen:

> the meaning of (e:...:) is that the result of executing the commands
> determines whether or not the file participates in the glob result.  So
> the commands must be executed for every file, and this happens before
> the sorting.

If it happens before sorting, it must also happen before selecting any
of the elements from the sorted result.



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