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

Re: Getting rid of temporaries...



    Hi Oliver :)

 * Oliver Kiddle <okiddle@xxxxxxxxxxx> dixit:
> >     print -l *.??.jpg(e['REPLY=${REPLY%.??.jpg}'])
> Isn't that just the same as:
>       print -l *.??.jpg(:r:r)

    Yes!! I'm not used with the 'r' flag, and I didn't think of it.
But yes, removing both suffixes at one time is just the same. In
fact, both the .jpg and the two digit number are just suffixes for the
image name.
 
> Can do the unique with the `e' globbing flag but not without
> temporaries or eval.

    How can I do using eval? Assume that I don't have the (u) flag...

    Thanks !

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/



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