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

zsh detects rm * but not rm ** (multiple stars)



Hello,

I like this feature of zsh where it warns user when using
rm * or rm **/* (when RM_STAR_SILENT is not set)


But if by mistake I type rm ** OR for that matter rm **/**
it does not detect this and does not warn!


BOOM!! Everything will be erased in 2nd case!!
(I know there is still -i to save me!)


But I suppose match should not just be on single *
but on *+ (1 or more *)

Please consider this.


Also is there a way to make zsh warn when there is * in
argument list, regardless of command?

i.e. it should warn me even if I type:

$ cp * /abcd/

zsh: sure you want to pass all the files in ... [yn]?

Is this possible?


Thanks and regards,


Amm




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