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

Re: Suppressing failed glob patterns



* 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