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

Re: Suppressing failed glob patterns



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