From owner-freebsd-current@FreeBSD.ORG Tue Sep 25 18:43:21 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA8EC16A418; Tue, 25 Sep 2007 18:43:21 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (cl-162.ewr-01.us.sixxs.net [IPv6:2001:4830:1200:a1::2]) by mx1.freebsd.org (Postfix) with ESMTP id F0F6913C4A7; Tue, 25 Sep 2007 18:43:20 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.13.8/8.13.8) with ESMTP id l8PIhIJr079038; Tue, 25 Sep 2007 13:43:18 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.13.8/8.13.8/Submit) id l8PIhIQ4079037; Tue, 25 Sep 2007 13:43:18 -0500 (CDT) (envelope-from brooks) Date: Tue, 25 Sep 2007 13:43:18 -0500 From: Brooks Davis To: Daichi GOTO Message-ID: <20070925184318.GC78038@lor.one-eyed-alien.net> References: <46F905FD.9060208@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="O3RTKUHj+75w1tg5" Content-Disposition: inline In-Reply-To: <46F905FD.9060208@freebsd.org> User-Agent: Mutt/1.5.15 (2007-04-06) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Tue, 25 Sep 2007 13:43:20 -0500 (CDT) Cc: FreeBSD Current , Masanori OZAWA Subject: Re: The safety expansion for FreeBSD rm(1) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Sep 2007 18:43:21 -0000 --O3RTKUHj+75w1tg5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 25, 2007 at 09:58:37PM +0900, Daichi GOTO wrote: > Hi Guys again >=20 > Today is not unionfs. Introduction for safety expansion of rm(1). > I know that some unix folks have a experience that you remove some > files or directories accidentally. Yes, me too. LoL >=20 > Have you any dreams that rm(1) autonomously judges target should > be remove or not? To complexify system base command is objectionable > behavior but adding some little and simple mechanism to prevent a > issue is acceptable I suppose. >=20 > We have created safety expansion for rm(1). If you have any interests, > please try follow patch. >=20 > http://people.freebsd.org/~daichi/safety-rm/ >=20 > Thanks :) This seems like an interesting extension of rm(1) in a fairly harmless mann= er. It seems like a fairly logical extension of the tcsh rmstar variable. The one concern I would have with it is that unlike the rmstar variable, it wou= ld always run even if the rm command is run in a script. What do you think of adding a flag to enable this behavior so users could make rm an alias that uses the flag? That would keep it from effecting scripts. -- Brooks --O3RTKUHj+75w1tg5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFG+VbGXY6L6fI4GtQRAuK6AKDhAjUbKgFp7Gi7/IV5z0GTnbplmQCfVQQA uX1mkIDdV7R15ukGY1SmkKQ= =Eodd -----END PGP SIGNATURE----- --O3RTKUHj+75w1tg5--