Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Suppressing failed glob patterns
- X-seq: zsh-users 13524
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Suppressing failed glob patterns
- Date: Thu, 4 Dec 2008 13:27:50 -0800
- In-reply-to: <gh9hq5$ano$1@xxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <gh9g43$rt5$1@xxxxxxxxxxxxx> <20081204210441.GJ2692@xxxxxxxxxxxxxxx> <gh9hq5$ano$1@xxxxxxxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author