Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Oct 2004 08:25:31 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/bin/rm rm.1 rm.c
Message-ID:  <200410280825.i9S8PVWc057933@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410280825.i9S8PVWc057933>