Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Oct 2006 09:26:49 +0200
From:      Vasil Dimov <vd@FreeBSD.org>
To:        Doug Barton <dougb@FreeBSD.org>
Cc:        freebsd-hackers@freebsd.org, perryh@pluto.rain.com, "Simon L. Nielsen" <simon@FreeBSD.org>
Subject:   Re: [patch] rm can have undesired side-effects
Message-ID:  <20061031072649.GA69594@qlovarnika.bg.datamax>
In-Reply-To: <45466902.5090603@FreeBSD.org>
References:  <20061029222847.GA68272@marvin.astase.com> <20061030003628.42bc5f8d@loki.starkstrom.lan> <45455f6a.yNcc0kkyEKpoRv3m%perryh@pluto.rain.com> <20061030083849.GB871@turion.vk2pj.dyndns.org> <20061030103151.GD871@turion.vk2pj.dyndns.org> <20061030202030.GB1043@zaphod.nitro.dk> <45466902.5090603@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--OgqxwSJOaUobr8KG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Oct 30, 2006 at 01:05:06PM -0800, Doug Barton wrote:
> Simon L. Nielsen wrote:
>=20
> > 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. =20
>=20
> Sorry, I disagree. It's not always obvious to the user when a file has
> hard links, and I can't see any situation where the pre-recent-patch
> behavior (overwriting the actual file when using -P on a hard link) is
> the expected outcome.
>=20
> It's all well and good to say, "tough luck," but I don't think that's
> what our users expect.

How do you know what is "obvious to the user" and what "users expect"?
Have you done some surveys or researches? If not, than it is all relative
and happening inside _your_ head.

To speak in facts: How many users do you know that have complained about
rm(1)'s behavior before this thread was started (I mean the -P switch
when file has multiple links)? Or have lost their valuable data because
of "rm -P"-ing their files?

IMHO many problems arise when someone tries to please even the stupidest
user by writing a fool-proof software. To me the beauty of Unixes is
that they are _not_ fool-proof, e.g. your are holding a real gun, you
should be carefull not to point it to your head and pull the trigger.

--=20
Vasil Dimov
gro.DSBeerF@dv
%
Shaw's Principle:
        Build a system that even a fool can use, and only a fool will
want to use it.

--OgqxwSJOaUobr8KG
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----

iD8DBQFFRvq5Fw6SP/bBpCARAmorAJ4h8c4wvQuf7LAS9Ow/2uoAhCr/GwCeO5O+
n8vqD+Mw/WKDn2312MdKjpI=
=v1c4
-----END PGP SIGNATURE-----

--OgqxwSJOaUobr8KG--



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