From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@sunsite.dk
Subject: Re: ignore globs that do not match -> prevent function from exiting
Date: Tue, 22 Jun 2004 00:17:18 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.44.0406220015010.22804-100000@toltec.zanshin.com> (raw)
In-Reply-To: <20040622065612.GA18807@fruitcom.com>
nOn Tue, 22 Jun 2004, Eric Smith wrote:
> Bart Schaefer said:
> > mpg_glob() { mpg321 *${~^@}* }
> > alias mpg='noglob mpg_glob'
>
> If the globbed argument list includes an invalid file or something that
> causes mpg321 to fall over, then mpg_glob() exits.
Hmm, sorry, I didn't consolidate all the other fragmentary answers I gave
into that final example. It should be
mpg_glob() {
setopt localoptions cshnullglob
mpg321 *${~^@}*
}
alias mpg='noglob mpg_glob'
prev parent reply other threads:[~2004-06-22 7:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-13 1:51 brace expansion in function Eric Smith
2004-06-13 4:31 ` Bart Schaefer
2004-06-13 12:53 ` Eric Smith
2004-06-13 16:04 ` Thomas Köhler
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 [this message]
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=Pine.LNX.4.44.0406220015010.22804-100000@toltec.zanshin.com \
--to=schaefer@brasslantern.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).