GNU bug report logs - #12339
Bug: rm -fr . doesn't dir depth first deletion yet it is documented to do so.

Previous Next

Package: coreutils;

Reported by: Linda Walsh <coreutils <at> tlinx.org>

Date: Mon, 3 Sep 2012 00:34:02 UTC

Severity: normal

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Linda Walsh <coreutils <at> tlinx.org>
To: Eric Blake <eblake <at> redhat.com>
Cc: 12339 <at> debbugs.gnu.org
Subject: bug#12339: Bug: rm -fr . doesn't dir depth first deletion yet it is documented to do so.
Date: Tue, 04 Sep 2012 11:07:22 -0700

Eric Blake wrote:
> POSIX does indeed say that, but it applies only when you use 'rm' in a
> standards-compliant invocation; the moment you add --no-preserve-root to
> your invocation, you are no longer using a standards-compliant
> invocation, so all bets are off as far as POSIX goes.
--
	Which under GNU tools has mean when POSIX_CORRECTLY=1 is set
in the environment.

	It is not.

	There is nothing preventing tools functioning in a more userfriendly
manner than POSIX allows in the absence of a request for POSIX_CORRECTLY.

	Unless you are telling me that all GNU utils have removed
that and always run in POSIX mode by default.

	POSIX was designed to be a lowest common denominator --
not a highest level allowed -- that's why under Gnu/Linux it's
only under a specific request for POSIX compat that lowest level
functionality is enforced.





This bug report was last modified 6 years and 186 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.