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: Paul Eggert <eggert <at> cs.ucla.edu>
To: "Linda A. Walsh" <law <at> tlinx.org>
Cc: Jim Meyering <meyering <at> redhat.com>, "12339 <at> debbugs.gnu.org" <12339 <at> debbugs.gnu.org>
Subject: bug#12339: [PATCH] rm: avoid bogus diagnostic for a slash-decorated symlink-to-dir
Date: Wed, 05 Sep 2012 08:13:20 -0700
On 09/05/2012 07:51 AM, Linda A. Walsh wrote:
>> Just start the script with "#!/bin/sh", as usual.
>> When invoked that way, Bash and other shells are POSIX-compliant
>> in this area.

> To what level of posix...

To all the levels that are relevant for this discussion.

In practice, people use "#!/bin/sh" and it works pretty well
to avoid compatibility issues like this.  It's not perfect
for all POSIX issues, but you were asking for a solution to
a particular problem, and this should solve your problem.





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

Previous Next


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