Re: [patch] rm can have undesired side-effects
- From: Vasil Dimov <vd@xxxxxxxxxxx>
- Date: Tue, 31 Oct 2006 09:26:49 +0200
On Mon, Oct 30, 2006 at 01:05:06PM -0800, Doug Barton wrote:
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.
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.
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.
--
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.
Attachment:
pgp6mIHyvbM5e.pgp
Description: PGP signature
- Follow-Ups:
- Re: [patch] rm can have undesired side-effects
- From: perryh
- Re: [patch] rm can have undesired side-effects
- References:
- [patch] rm can have undesired side-effects
- From: Romain Tartiere
- Re: [patch] rm can have undesired side-effects
- From: Joerg Pernfuss
- Re: [patch] rm can have undesired side-effects
- From: perryh
- Re: [patch] rm can have undesired side-effects
- From: Peter Jeremy
- Re: [patch] rm can have undesired side-effects
- From: Peter Jeremy
- Re: [patch] rm can have undesired side-effects
- From: Simon L. Nielsen
- Re: [patch] rm can have undesired side-effects
- From: Doug Barton
- [patch] rm can have undesired side-effects
- Prev by Date: Re: Email recommendations
- Next by Date: PIC questions
- Previous by thread: Re: [patch] rm can have undesired side-effects
- Next by thread: Re: [patch] rm can have undesired side-effects
- Index(es):
Relevant Pages
|