X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-5.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <500C2940.8080800@tlinx.org> References: <500B961D DOT 6050303 AT tlinx DOT org> <333998685 DOT 20120722180817 AT mtu-net DOT ru> <500C2940 DOT 8080800 AT tlinx DOT org> Date: Sun, 22 Jul 2012 12:33:12 -0400 Message-ID: Subject: Re: Confusing, but not fatal bug....rmdir removed network dir (rename to .____00000hexnum/) From: Earnie Boyd To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Sun, Jul 22, 2012 at 12:24 PM, Linda Walsh wrote: > Andrey Repin wrote: >> >> Greetings, Linda Walsh! >> >>> I sometimes use "rmdir *" to clean up empty dir's. >> >> >> There's a known issue about difference in Windows and *NIX handling of >> directory removal in many cases. >> I would say, you drop such practice and be more explicit in your actions. > > ---- > You are saying POSIX allows directory removal to behave > differently if it is running on Windows? Windows is not at all *POSIX* compliant nor will it ever be but the issue doesn't belong to Windows either, the Windows shell will not remove the directory if it contains files. > > I'm not running this in explorer, or cmd.com > I'm running in bash, using rmdir. I'll agree that Cygwin should not rename the directory for later removal if the directory is not empty. The rename occurs because Cygwin cannot remove the directory or file and thus renames it so that when it can it will remove it. -- Earnie -- https://sites.google.com/site/earnieboyd -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple