From: "Thomas Köhler" <jean-luc@picard.franken.de>
To: Eric Smith <es@fruitcom.com>
Cc: zsh-users@sunsite.dk
Subject: Re: brace expansion in function
Date: Sun, 13 Jun 2004 18:04:42 +0200 [thread overview]
Message-ID: <20040613160441.GA27939@picard.franken.de> (raw)
In-Reply-To: <20040613015124.GK12538@fruitcom.com>
[-- Attachment #1: Type: text/plain, Size: 549 bytes --]
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@picard.franken.de
<>< WWW: http://jeanluc-picard.de
IRC: tkoehler
PGP public key available from Homepage!
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-06-13 16:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-13 1:51 Eric Smith
2004-06-13 4:31 ` Bart Schaefer
2004-06-13 12:53 ` Eric Smith
2004-06-13 16:04 ` Thomas Köhler [this message]
2004-06-14 7:37 ` ignore globs that do not match Eric Smith
2004-06-14 8:31 ` Bart Schaefer
2004-06-22 6:56 ` ignore globs that do not match -> prevent function from exiting Eric Smith
2004-06-22 7:17 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040613160441.GA27939@picard.franken.de \
--to=jean-luc@picard.franken.de \
--cc=es@fruitcom.com \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).