From owner-cvs-all@FreeBSD.ORG Thu Oct 28 08:25:31 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C733C16A4CE; Thu, 28 Oct 2004 08:25:31 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD2B643D4C; Thu, 28 Oct 2004 08:25:31 +0000 (GMT) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i9S8PVIc057934; Thu, 28 Oct 2004 08:25:31 GMT (envelope-from delphij@repoman.freebsd.org) Received: (from delphij@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i9S8PVWc057933; Thu, 28 Oct 2004 08:25:31 GMT (envelope-from delphij) Message-Id: <200410280825.i9S8PVWc057933@repoman.freebsd.org> From: Xin LI Date: Thu, 28 Oct 2004 08:25:31 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/bin/rm rm.1 rm.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Oct 2004 08:25:32 -0000 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