Date: Mon, 30 Oct 2006 16:13:59 -0800 From: Freddie Cash <fcash@ocis.net> To: freebsd-hackers@freebsd.org Subject: Re: [patch] rm can have undesired side-effects Message-ID: <200610301613.59298.fcash@ocis.net> In-Reply-To: <17734.27601.79021.873705@bhuda.mired.org> References: <20061029222847.GA68272@marvin.astase.com> <45466902.5090603@FreeBSD.org> <17734.27601.79021.873705@bhuda.mired.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 30 October 2006 01:17 pm, Mike Meyer wrote: > In <45466902.5090603@FreeBSD.org>, Doug Barton <dougb@FreeBSD.org> typed: > > Simon L. Nielsen wrote: > > > Personally I think rm should do what you ask it to do - if you ask > > > it to overwrite a file which has multiple links, well... though > > > luck. > > > > It's all well and good to say, "tough luck," but I don't think that's > > what our users expect. > > I'm a user. It's what I expect. If I wanted an OS that protected me > from myself, I wouldn't be running Unix. Please give me the rope I > need to get the job done. If that happens to be enough that I can hang > myself, and I sometimes do - well, I got what I asked for. When I want > to be coddled, I'll run a different OS. Isn't that what the -f option is for in every command? By default, be conservative in what you do (error out with nice messages when in doubt). If the user knows what they are doing then let them specify -f. -- Freddie Cash fcash@ocis.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610301613.59298.fcash>