Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: brace expansion in function
- X-seq: zsh-users 7531
- From: Thomas Köhler <jean-luc@xxxxxxxxxxxxxxxxx>
- To: Eric Smith <es@xxxxxxxxxxxx>
- Subject: Re: brace expansion in function
- Date: Sun, 13 Jun 2004 18:04:42 +0200
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <20040613015124.GK12538@xxxxxxxxxxxx>
- Mail-followup-to: Eric Smith <es@xxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20040613015124.GK12538@xxxxxxxxxxxx>
Eric Smith wrote:
> I would like a shell function that expands the arg
> {corrs,dylan,crespo}
>
> This try only gives all corrs songs:
>
> mpg() {
> mpg321 *$1*
> }
mpg() {
local arg
local l
for arg ; do l="*$arg* $l" ; done
eval mpg321 $l
}
Ciao,
Thomas
--
Thomas Köhler Email: jean-luc@xxxxxxxxxxxxxxxxx
<>< WWW: http://jeanluc-picard.de
IRC: tkoehler
PGP public key available from Homepage!
Attachment:
signature.asc
Description: Digital signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author