From unknown Wed Jun 18 23:12:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9931: Remove a non empty directory Resent-From: "Olivier LE GUEN" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 01 Nov 2011 16:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9931 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 9931@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13201637098374 (code B ref -1); Tue, 01 Nov 2011 16:09:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Nov 2011 16:08:29 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLGt3-0002B0-5P for submit@debbugs.gnu.org; Tue, 01 Nov 2011 12:08:29 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLC2s-00023v-JF for submit@debbugs.gnu.org; Tue, 01 Nov 2011 06:58:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLC0Z-0005EW-TI for submit@debbugs.gnu.org; Tue, 01 Nov 2011 06:56:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE autolearn=no version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:40411) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLC0Z-0005EP-NC for submit@debbugs.gnu.org; Tue, 01 Nov 2011 06:55:55 -0400 Received: from eggs.gnu.org ([140.186.70.92]:49333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLC0Y-0003W0-CQ for bug-coreutils@gnu.org; Tue, 01 Nov 2011 06:55:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLC0X-0005DZ-GE for bug-coreutils@gnu.org; Tue, 01 Nov 2011 06:55:54 -0400 Received: from mailout-eu.gmx.com ([213.165.64.43]:36971) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RLC0X-0005CZ-0q for bug-coreutils@gnu.org; Tue, 01 Nov 2011 06:55:53 -0400 Received: (qmail 14949 invoked by uid 0); 1 Nov 2011 10:55:49 -0000 Received: from 90.44.177.10 by rms-eu012.v300.gmx.net with HTTP Content-Type: multipart/alternative; boundary="========GMXBoundary297651320144947495838" Date: Tue, 01 Nov 2011 11:55:47 +0100 From: "Olivier LE GUEN" Message-ID: <20111101105547.297650@gmx.com> MIME-Version: 1.0 X-Authenticated: #53657662 X-Flags: 0001 X-Mailer: GMX.com Web Mailer x-registered: 0 X-GMX-UID: BOaceic8TXsuNU2kU2c5XCtCRzdyMsM3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Mailman-Approved-At: Tue, 01 Nov 2011 12:08:28 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) --========GMXBoundary297651320144947495838 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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 --========GMXBoundary297651320144947495838 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello,
= =20
=20 I use Putty to connect my ReadyNas Ultra2 in SSH mode.  
=20 My problem is I can't remove a non empty directory because there's no "-r" = option in "rmdir".
=20 How can I have a recursive function ?
=20
=20 Thanks,
=20
=20 Best regards,
=20
=20 Olivier 
--========GMXBoundary297651320144947495838-- From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 01 12:18:19 2011 Received: (at control) by debbugs.gnu.org; 1 Nov 2011 16:18:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLH2Y-0002R3-OS for submit@debbugs.gnu.org; Tue, 01 Nov 2011 12:18:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLH2V-0002Qp-54; Tue, 01 Nov 2011 12:18:17 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pA1GFuOP024265 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 1 Nov 2011 12:15:56 -0400 Received: from [10.3.113.74] (ovpn-113-74.phx2.redhat.com [10.3.113.74]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id pA1GFtZa009602; Tue, 1 Nov 2011 12:15:56 -0400 Message-ID: <4EB01B3B.9030807@redhat.com> Date: Tue, 01 Nov 2011 10:15:55 -0600 From: Eric Blake Organization: Red Hat User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110928 Fedora/3.1.15-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.4 Thunderbird/3.1.15 MIME-Version: 1.0 To: Olivier LE GUEN Subject: Re: bug#9931: Remove a non empty directory References: <20111101105547.297650@gmx.com> In-Reply-To: <20111101105547.297650@gmx.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Spam-Score: -10.3 (----------) X-Debbugs-Envelope-To: control Cc: 9931-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -10.3 (----------) 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@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org From unknown Wed Jun 18 23:12:00 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: "Olivier LE GUEN" Subject: bug#9931: closed (Re: bug#9931: Remove a non empty directory) Message-ID: References: <4EB01B3B.9030807@redhat.com> <20111101105547.297650@gmx.com> X-Gnu-PR-Message: they-closed 9931 X-Gnu-PR-Package: coreutils X-Gnu-PR-Keywords: notabug Reply-To: 9931@debbugs.gnu.org Date: Tue, 01 Nov 2011 16:19:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1320164342-9438-1" This is a multi-part message in MIME format... ------------=_1320164342-9438-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #9931: Remove a non empty directory which was filed against the coreutils package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 9931@debbugs.gnu.org. --=20 9931: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D9931 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1320164342-9438-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 9931-done) by debbugs.gnu.org; 1 Nov 2011 16:18:18 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLH2Y-0002R0-1I for submit@debbugs.gnu.org; Tue, 01 Nov 2011 12:18:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLH2V-0002Qp-54; Tue, 01 Nov 2011 12:18:17 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pA1GFuOP024265 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 1 Nov 2011 12:15:56 -0400 Received: from [10.3.113.74] (ovpn-113-74.phx2.redhat.com [10.3.113.74]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id pA1GFtZa009602; Tue, 1 Nov 2011 12:15:56 -0400 Message-ID: <4EB01B3B.9030807@redhat.com> Date: Tue, 01 Nov 2011 10:15:55 -0600 From: Eric Blake Organization: Red Hat User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110928 Fedora/3.1.15-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.4 Thunderbird/3.1.15 MIME-Version: 1.0 To: Olivier LE GUEN Subject: Re: bug#9931: Remove a non empty directory References: <20111101105547.297650@gmx.com> In-Reply-To: <20111101105547.297650@gmx.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Spam-Score: -10.3 (----------) X-Debbugs-Envelope-To: 9931-done Cc: 9931-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -10.3 (----------) 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@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org ------------=_1320164342-9438-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 1 Nov 2011 16:08:29 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLGt3-0002B0-5P for submit@debbugs.gnu.org; Tue, 01 Nov 2011 12:08:29 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLC2s-00023v-JF for submit@debbugs.gnu.org; Tue, 01 Nov 2011 06:58:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLC0Z-0005EW-TI for submit@debbugs.gnu.org; Tue, 01 Nov 2011 06:56:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE autolearn=no version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:40411) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLC0Z-0005EP-NC for submit@debbugs.gnu.org; Tue, 01 Nov 2011 06:55:55 -0400 Received: from eggs.gnu.org ([140.186.70.92]:49333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLC0Y-0003W0-CQ for bug-coreutils@gnu.org; Tue, 01 Nov 2011 06:55:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLC0X-0005DZ-GE for bug-coreutils@gnu.org; Tue, 01 Nov 2011 06:55:54 -0400 Received: from mailout-eu.gmx.com ([213.165.64.43]:36971) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RLC0X-0005CZ-0q for bug-coreutils@gnu.org; Tue, 01 Nov 2011 06:55:53 -0400 Received: (qmail 14949 invoked by uid 0); 1 Nov 2011 10:55:49 -0000 Received: from 90.44.177.10 by rms-eu012.v300.gmx.net with HTTP Content-Type: multipart/alternative; boundary="========GMXBoundary297651320144947495838" Date: Tue, 01 Nov 2011 11:55:47 +0100 From: "Olivier LE GUEN" Message-ID: <20111101105547.297650@gmx.com> MIME-Version: 1.0 Subject: Remove a non empty directory To: bug-coreutils@gnu.org X-Authenticated: #53657662 X-Flags: 0001 X-Mailer: GMX.com Web Mailer x-registered: 0 X-GMX-UID: BOaceic8TXsuNU2kU2c5XCtCRzdyMsM3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 01 Nov 2011 12:08:28 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) --========GMXBoundary297651320144947495838 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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 --========GMXBoundary297651320144947495838 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello,
= =20
=20 I use Putty to connect my ReadyNas Ultra2 in SSH mode.  
=20 My problem is I can't remove a non empty directory because there's no "-r" = option in "rmdir".
=20 How can I have a recursive function ?
=20
=20 Thanks,
=20
=20 Best regards,
=20
=20 Olivier 
--========GMXBoundary297651320144947495838-- ------------=_1320164342-9438-1--