GNU bug report logs - #9931
Remove a non empty directory

Previous Next

Package: coreutils;

Reported by: "Olivier LE GUEN" <olg28 <at> gmx.fr>

Date: Tue, 1 Nov 2011 16:09:02 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eric Blake <eblake <at> redhat.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#9931: closed (Remove a non empty directory)
Date: Tue, 01 Nov 2011 16:19:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 01 Nov 2011 10:15:55 -0600
with message-id <4EB01B3B.9030807 <at> redhat.com>
and subject line Re: bug#9931: Remove a non empty directory
has caused the debbugs.gnu.org bug report #9931,
regarding Remove a non empty directory
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
9931: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9931
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: "Olivier LE GUEN" <olg28 <at> gmx.fr>
To: bug-coreutils <at> gnu.org
Subject: Remove a non empty directory
Date: Tue, 01 Nov 2011 11:55:47 +0100
[Message part 3 (text/plain, inline)]
Hello,

 I use Putty to connect my ReadyNas Ultra2 in SSH mode. 
 My problem is I can't remove a non empty directory because there's no "-r" option in "rmdir".
 How can I have a recursive function ?

 Thanks,

 Best regards,

 Olivier
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: Eric Blake <eblake <at> redhat.com>
To: Olivier LE GUEN <olg28 <at> gmx.fr>
Cc: 9931-done <at> debbugs.gnu.org
Subject: Re: bug#9931: Remove a non empty directory
Date: Tue, 01 Nov 2011 10:15:55 -0600
tag 9931 notabug
thanks

On 11/01/2011 04:55 AM, Olivier LE GUEN wrote:
>   My problem is I can't remove a non empty directory because there's no "-r" option in "rmdir".
>   How can I have a recursive function ?

Thanks for the report.  However, this is unlikely to be changed in 
'rmdir', because POSIX already standardized 'rm -r' as the way to 
recursively remove directories.  So many people are used to 'rm -r' 
doing what you are asking for, that adding an extension of 'rmdir -r' as 
an alternative would only cause confusion, not to mention that the 
extension would not be available everywhere like 'rm -r' already is.

-- 
Eric Blake   eblake <at> redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


This bug report was last modified 13 years and 203 days ago.

Previous Next


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