[Ilugc] Re: rm command

  • From: srivasta@xxxxxxxxxx (Manoj Srivastava)
  • Date: Wed Apr 25 18:54:56 2007

Hi,

        I think zsh has the best of both worlds in this:
__> rm -rf *
zsh: sure you want to delete all the files in /tmp? (waiting ten seconds)
 [yn]? n
__> rm -rf foo*
__>

        So, it makes you wait for 10 seconds if you do rm -rf *, so no
 knee jerk responses are likely to make it through, but rm -rf of a
 smaller set (where you are likely to have considered what you are
 deleting) just go through.

        manoj

 RM_STAR_SILENT (-H) <K> <S>
        Do not query the user before executing ?rm *? or ?rm path/*?.

 RM_STAR_WAIT
        If querying the user before executing ?rm  *?  or  ?rm  path/*?,
        first  wait  ten seconds and ignore anything typed in that time.
        This avoids the problem of reflexively answering  ?yes?  to  the
        query  when  one  didn?t really mean it.  The wait and query can
        always be avoided by expanding the ?*? in ZLE (with tab).


-- 
Like I always say -- nothing can beat the BRATWURST here in DUSSELDORF!!
Manoj Srivastava <srivasta@xxxxxxx> <http://www.golden-gryphon.com/>
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C

Other related posts: