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

Re: rm nonexisting*; alias with parameters?



On 8/10/05, Deliverable Mail <deliverable@xxxxxxxxx> wrote:
> Thanks, Peter!  (I hear you, Ligesh...  will do later :)  Worked as
> described.  Making rm -f does not change zsh behavior, of course, as
> globbing happens before -f can kick in -- so it's a bit confusing that
> -f doesn't work.  Thankfully zsh says zsh: before its globbing error.
> It's a tricky fault for those who expect rm -f to shut up and do it...
> 
> Alexy

You can also add (N) directly after the pattern without the options
set and they will silently expand to nothing. ie rm *.txt *.bak(N)
will fail if there are no *.txt files but no *.bak files is okay.



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