Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: globbing with interposition
- X-seq: zsh-users 8707
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Eric Smith <es@xxxxxxxxxxxx>
- Subject: Re: globbing with interposition
- Date: Tue, 19 Apr 2005 20:36:28 +0200
- Cc: Zsh Users <zsh-users@xxxxxxxxxx>
- In-reply-to: <20050419072115.GA15936@xxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050419072115.GA15936@xxxxxxxxxxxx>
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