zsh-users
 help / color / mirror / code / Atom feed
* zsh detects rm * but not rm ** (multiple stars)
@ 2014-03-13  9:26 Amm
  2014-03-13 16:19 ` Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Amm @ 2014-03-13  9:26 UTC (permalink / raw)
  To: zsh-users

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-03-14  6:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-13  9:26 zsh detects rm * but not rm ** (multiple stars) Amm
2014-03-13 16:19 ` Bart Schaefer
2014-03-14  5:48   ` Amm
2014-03-14  6:02     ` Amm

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).