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

Re: globbing with interposition



> 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

This creates a temporary array containing all file names in the
globbing pattern and expands it with the RC_EXPAND_PARAM option set.

-- 
J
"If you wish to leave a record of your call,
 please state your messij at the sound of the tone."



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