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


Message #110 received at 12339 <at> debbugs.gnu.org (full text, mbox):

From: "Linda A. Walsh" <law <at> tlinx.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: Jim Meyering <meyering <at> redhat.com>,
	"12339 <at> debbugs.gnu.org" <12339 <at> debbugs.gnu.org>
Subject: Re: bug#12339: [PATCH] rm: avoid bogus diagnostic for a
	slash-decorated symlink-to-dir
Date: Wed, 05 Sep 2012 07:51:07 -0700
[Message part 1 (text/plain, inline)]
Paul Eggert wrote:
> On 09/04/2012 11:58 PM, Linda A. Walsh wrote:
>   
>>    I'm not talking for interactive use... I'm talking for use in a script
>> that might run on systems that are not mine -- so I can't rely on shell settings.
>>     
>
> Yes you can.  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... if they are compliant to the original level
then they might have the original behavior that allowed rm -r . to work.

if they are the 2003 version, then a different way, .. bleh.

I overly worry about things that don't occur, but get caught
by things I didn't worry enough about.   So it doesn't really
matter.  I just preferred simplicity to the ever changing
posix.


[Message part 2 (text/html, inline)]

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.