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

Re: globbing with interposition



Eric Smith wrote:
> 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.
> 
> So, I would like to do something like this (which obviously
> dont work) in order to achieve the above.
> 
> mutt eric -a fotos* -s "all images attached" </dev/null
> 

The following works:

  files=( fotos* )
  mutt eric {-a,$^files} -s "all images attached" </dev/null

That may seem strange but I suppose the array must be expanded before
the braces.

Oliver



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