Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: globbing with interposition
- X-seq: zsh-users 8701
- From: DervishD <zsh@xxxxxxxxxxxx>
- To: J <jean.chalard@xxxxxxxxx>
- Subject: Re: globbing with interposition
- Date: Tue, 19 Apr 2005 10:35:40 +0200
- Cc: Eric Smith <es@xxxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxxxxx>
- In-reply-to: <fb6be96e05041901223a87e20e@xxxxxxxxxxxxxx>
- Mail-followup-to: J <jean.chalard@xxxxxxxxx>, Eric Smith <es@xxxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: DervishD
- References: <20050419072115.GA15936@xxxxxxxxxxxx> <fb6be96e05041901223a87e20e@xxxxxxxxxxxxxx>
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