Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Getting rid of temporaries...
- X-seq: zsh-workers 19063
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Getting rid of temporaries...
- Date: Thu, 11 Sep 2003 08:29:56 +0200
- Cc: Zsh <zsh-workers@xxxxxxxxxx>
- In-reply-to: <1030911010623.ZM7489@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20030910203429.GA354@DervishD> <20030910223845.GA10805@xxxxxxxxxxxxxxxxxx> <1030911010623.ZM7489@xxxxxxxxxxxxxxxxxxxxxxx>
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