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

Re: Getting rid of temporaries...



Bart wrote:
> 
> If you have the array, it's easy to do without uniq.  To do it without
> the array begins to creep into the realm of "so difficult it's not
> worth bothering."
> 
> The 'e' globbing flag gets you most of the way:
> 
>     print -l *.??.jpg(e['REPLY=${REPLY%.??.jpg}'])

Isn't that just the same as:

      print -l *.??.jpg(:r:r)

Can do the unique with the `e' globbing flag but not without
temporaries or eval.

Oliver



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