Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: ignore globs that do not match -> prevent function from exiting



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