cvs commit: src/bin/rm rm.1 rm.c

Xin LI delphij at FreeBSD.org
Thu Oct 28 01:25:32 PDT 2004


delphij     2004-10-28 08:25:31 UTC

  FreeBSD src repository

  Modified files:
    bin/rm               rm.1 rm.c 
  Log:
  Add -I, an option that asks for confirmation once if recursively
  removing directories or if more than 3 files are listed in the
  command line.
  
  This feature is intended to provide a safe net but not being too
  annoying like having "rm -i" for every deleting operations, and
  is generally good for both newbies and power users, preventing
  them from being so easily run into ``rm -rf /'', ``rm -rf *''
  and so forth.
  
  Originally implemented by Matthew Dillon for DragonFly, plus
  some improvements done by various DragonFly contributors.
  
  Approved by:    murray (mentor; the original dillon's version)
  Discussed with: des
  Obtained from:  DragonFly's bin/rm/
                  rm.c rev. 1.4 - 1.8
                  rm.1 rev. 1.3 - 1.4
  MFC After:      1 month
  
  Revision  Changes    Path
  1.32      +8 -2      src/bin/rm/rm.1
  1.51      +62 -3     src/bin/rm/rm.c


More information about the cvs-src mailing list