public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Earnie Boyd <earnie@users.sourceforge.net>
To: cygwin@cygwin.com
Subject: Re: Confusing, but not fatal bug....rmdir removed network dir (rename to .____00000hexnum/)
Date: Sun, 22 Jul 2012 16:33:00 -0000	[thread overview]
Message-ID: <CA+sc5mkQr4+y4ROWUEYEh4RibTEeXDhO2mQzigASPY6hejjVSg@mail.gmail.com> (raw)
In-Reply-To: <500C2940.8080800@tlinx.org>

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

  reply	other threads:[~2012-07-22 16:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-22  5:57 Linda Walsh
2012-07-22 14:20 ` Andrey Repin
2012-07-22 14:58   ` Aaron Schneider
2012-07-22 16:24   ` Linda Walsh
2012-07-22 16:33     ` Earnie Boyd [this message]
2012-07-23  9:15 ` Corinna Vinschen
2012-07-25  1:25   ` Linda Walsh
2012-07-25 12:35     ` Corinna Vinschen
2012-07-25 20:53       ` Linda Walsh
2012-07-26  9:48         ` Corinna Vinschen
2012-07-26 21:48           ` Linda Walsh
2012-07-27  7:25             ` Corinna Vinschen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+sc5mkQr4+y4ROWUEYEh4RibTEeXDhO2mQzigASPY6hejjVSg@mail.gmail.com \
    --to=earnie@users.sourceforge.net \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).