From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1434 invoked from network); 13 Jun 2004 16:21:16 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 13 Jun 2004 16:21:16 -0000 Received: (qmail 28079 invoked from network); 13 Jun 2004 16:20:47 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 13 Jun 2004 16:20:47 -0000 Received: (qmail 16793 invoked by alias); 13 Jun 2004 16:20:27 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7531 Received: (qmail 16779 invoked from network); 13 Jun 2004 16:20:27 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 13 Jun 2004 16:20:24 -0000 Received: (qmail 27233 invoked from network); 13 Jun 2004 16:20:23 -0000 Received: from karnickel.franken.de (193.141.110.11) by a.mx.sunsite.dk with SMTP; 13 Jun 2004 16:20:21 -0000 Received: from karnickel.franken.de (localhost [127.0.0.1]) by karnickel.franken.de (8.12.10/8.12.10) with ESMTP id i5DGK18P075534 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 13 Jun 2004 18:20:11 +0200 (CEST) Received: (from uucp@localhost) by karnickel.franken.de (8.12.10/8.12.2/Submit) with UUCP id i5DGK05m075489; Sun, 13 Jun 2004 18:20:00 +0200 (CEST) (envelope-from jean-luc@picard.franken.de) Received: by picard.franken.de (Postfix, from userid 1001) id 211911184B3; Sun, 13 Jun 2004 18:04:42 +0200 (CEST) Date: Sun, 13 Jun 2004 18:04:42 +0200 From: Thomas =?iso-8859-1?Q?K=F6hler?= To: Eric Smith Cc: zsh-users@sunsite.dk Subject: Re: brace expansion in function Message-ID: <20040613160441.GA27939@picard.franken.de> Mail-Followup-To: Eric Smith , zsh-users@sunsite.dk References: <20040613015124.GK12538@fruitcom.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline In-Reply-To: <20040613015124.GK12538@fruitcom.com> X-Operating-System: Linux X-Editor: VIM - Vi IMproved 6.2 http://www.vim.org/ X-IRC: tirc; Nick: tkoehler X-URL: http://jeanluc-picard.de/ User-Agent: Mutt/1.5.4i X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=-1.4 required=6.0 tests=BAYES_20 autolearn=no version=2.63 X-Spam-Hits: -1.4 --SUOF0GtieIMvvwua Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Eric Smith wrote: > I would like a shell function that expands the arg > {corrs,dylan,crespo} >=20 > This try only gives all corrs songs: >=20 > mpg() { > mpg321 *$1* > } mpg() { local arg local l for arg ; do l=3D"*$arg* $l" ; done eval mpg321 $l } Ciao, Thomas --=20 Thomas K=F6hler Email: jean-luc@picard.franken.de <>< WWW: http://jeanluc-picard.de IRC: tkoehler PGP public key available from Homepage! --SUOF0GtieIMvvwua Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFAzHsZTEYXWMJlHuYRAgnSAKCN0LEJJrig/0tvwWGzCM/Erg4qZQCfUC3c dkijTY8t+rsgw9asGX+h0oQ= =sL5y -----END PGP SIGNATURE----- --SUOF0GtieIMvvwua--