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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9931 in the body.
You can then email your comments to 9931 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#9931; Package coreutils. (Tue, 01 Nov 2011 16:09:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Olivier LE GUEN" <olg28 <at> gmx.fr>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Tue, 01 Nov 2011 16:09:02 GMT) Full text and rfc822 format available.

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

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 1 (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 2 (text/html, inline)]

Added tag(s) notabug. Request was from Eric Blake <eblake <at> redhat.com> to control <at> debbugs.gnu.org. (Tue, 01 Nov 2011 16:19:02 GMT) Full text and rfc822 format available.

Reply sent to Eric Blake <eblake <at> redhat.com>:
You have taken responsibility. (Tue, 01 Nov 2011 16:19:02 GMT) Full text and rfc822 format available.

Notification sent to "Olivier LE GUEN" <olg28 <at> gmx.fr>:
bug acknowledged by developer. (Tue, 01 Nov 2011 16:19:02 GMT) Full text and rfc822 format available.

Message #12 received at 9931-done <at> debbugs.gnu.org (full text, mbox):

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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 30 Nov 2011 12:24:02 GMT) Full text and rfc822 format available.

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.