Date: Tue, 25 Sep 2007 13:43:18 -0500 From: Brooks Davis <brooks@freebsd.org> To: Daichi GOTO <daichi@freebsd.org> Cc: FreeBSD Current <freebsd-current@freebsd.org>, Masanori OZAWA <ozawa@ongs.co.jp> Subject: Re: The safety expansion for FreeBSD rm(1) Message-ID: <20070925184318.GC78038@lor.one-eyed-alien.net> In-Reply-To: <46F905FD.9060208@freebsd.org> References: <46F905FD.9060208@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070925184318.GC78038>