Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ignore globs that do not match -> prevent function from exiting
- X-seq: zsh-users 7583
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: ignore globs that do not match -> prevent function from exiting
- Date: Tue, 22 Jun 2004 00:17:18 -0700 (PDT)
- In-reply-to: <20040622065612.GA18807@xxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Reply-to: zsh-users@xxxxxxxxxx
- Sender: schaefer@xxxxxxxxxxxxxxxxxx
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'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author