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

Suppressing failed glob patterns



Hi,

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?!

Thorsten



Messages sorted by: Reverse Date, Date, Thread, Author