Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Suppressing failed glob patterns
- X-seq: zsh-users 13528
- From: Thorsten Kampe <thorsten@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Suppressing failed glob patterns
- Date: Thu, 4 Dec 2008 22:33:43 +0100
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <gh9g43$rt5$1@xxxxxxxxxxxxx> <20081204210441.GJ2692@xxxxxxxxxxxxxxx> <gh9hq5$ano$1@xxxxxxxxxxxxx> <691a5d910812041327u7b42f377j7eef368488398251@xxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
* Bart Schaefer (Thu, 4 Dec 2008 13:27:50 -0800)>
> On Thu, Dec 4, 2008 at 1:24 PM, Thorsten Kampe
> <thorsten@xxxxxxxxxxxxxxxx> wrote:
> > I just want rm not to be executed (like it's the default) but without
> > the error (which is fine when I do it interactively but not in a
> > script).
>
> Wrapping it in braces should do it:
>
> { rm non-existing-file.* } 2>/dev/null
Right. Surprisingly (for me) it does. Thanks.
Thorsten
Messages sorted by:
Reverse Date,
Date,
Thread,
Author