delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/07/22/12:33:32

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: <CA+sc5mkQr4+y4ROWUEYEh4RibTEeXDhO2mQzigASPY6hejjVSg@mail.gmail.com>
Subject: Re: Confusing, but not fatal bug....rmdir removed network dir (rename to .____00000hexnum/)
From: Earnie Boyd <earnie AT users DOT sourceforge DOT net>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019