Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Suppressing failed glob patterns
- X-seq: zsh-users 13533
- From: Thorsten Kampe <thorsten@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Suppressing failed glob patterns
- Date: Thu, 4 Dec 2008 22:40:10 +0100
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <gh9g43$rt5$1@xxxxxxxxxxxxx> <20081204213617.GB5136@xxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
* Stephane Chazelas (Thu, 4 Dec 2008 21:36:17 +0000)>
> On Thu, Dec 04, 2008 at 09:55:37PM +0100, Thorsten Kampe wrote:
> [...]
> > I like the default in zsh for failed glob patterns (which errors when no
> > file matches the pattern).
> >
> > For example:
> > % rm file1.* file2.*
> > zsh: no matches found: file1.*
> >
> > zsh never executes rm (which is fine). Additionially I would like to get
> > rid of the error message in a script. Unfortunately redirecting stderr
> > does not work (because rm is never executed). Is there a way to keep the
> > default and to suppress the error?!
> [...]
>
> {rm file1.* file2.*} 2> /dev/null
Thanks, also :)
Thorsten
Messages sorted by:
Reverse Date,
Date,
Thread,
Author