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

Re: globbing with interposition



    Hi Jean :)

 * J <jean.chalard@xxxxxxxxx> dixit:
> > I want to be able in a simple command to glob all files
> > but there needs to be a `-a' in front of each globbed file name.
> > 
> > mutt eric -a fotos* -s "all images attached" </dev/null
> I would suggest something like
> 
> a=(fotos*) mutt eric '-a '${^a} -s "all images attached" </dev/null
> or
> mutt eric '-a '${^$(print *)} -s "all images attached" </dev/null

    Nice!! I forgot the RC_EXPAND_PARAM option and the caret
notation. This is shorter and does appropriate quoting.

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736
http://www.dervishd.net & http://www.pleyades.net/
It's my PC and I'll cry if I want to...



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