delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/08/27/12:29:39

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:message-id:from:reply-to:to:subject
:references:in-reply-to:content-type; q=dns; s=default; b=al27cX
Z21JfACk/PKc8ViAZtPauV73pvfTbATzLsU071G/JUuFtb9VfsyAV2xACK3RU3In
cBZmemG29dIbc4ZGtRi6H82qSNVOZDvdHD9ulBeGFPYvDhxR2jCXoA2bpDTY0DJS
pHJOXK9nIo9fUk4WkJ/qROyoc7W6iQCJ/a3Fc=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:message-id:from:reply-to:to:subject
:references:in-reply-to:content-type; s=default; bh=JV2mIk+ICcIx
x2h0Mgl1qK06+jw=; b=wueSKhiX08p1NIAsrgBK1vBT8UdpElOHeL2zNnNX7FcD
KzA3PmqEKMymn386Ntk5io7Sp+FXuChd8d28N6JW2tXZrktaaIJYQKPR4uQjsjh+
Cjpyy8rfnA7zq3SY4FbZ0aiuST+q1Gku4n4Z1xroafMvygvyfM6oAsCyuY3IQg0=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,NORMAL_HTTP_TO_IP,NUMERIC_HTTP_ADDR,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=pour, ego, hurry, herself
X-HELO: lb3-smtp-cloud8.xs4all.net
Date: Tue, 27 Aug 2019 18:28:41 +0200
Message-ID: <a47cc167b725c08e6f1c914166fabcaf@smtp-cloud8.xs4all.net>
From: Houder <houder AT xs4all DOT nl>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: Odd, is it not? mkdir 'e:\' cannot be undone by rmdir 'e:\' ...
References: <bc3df101ab93c20b86c3ab7fa7d3ea4f AT xs4all DOT nl> <20190827152549 DOT GY11632 AT calimero DOT vinschen DOT de>
In-Reply-to: <20190827152549.GY11632@calimero.vinschen.de>
User-Agent: mua.awk 0.99

On Tue, 27 Aug 2019 17:25:49, Corinna Vinschen  wrote:
> 
> On Aug 27 14:51, Houder wrote:
[snip]

> > Now, let's play:
> >
> > 64-@@ cygpath -w /drv/e
> > E:\
> 
> > 64-@@ mkdir 'e:\' # creates subdirectory e: !!!!!
> > 64-@@ rmdir 'e:\' # fails, because it refers to /drv/e
> > rmdir: failed to remove 'e:\': Directory not empty
>
> > 64-@@ rmdir 'e:'
>
> > Yes, I should NOT use "DOS paths" ...
>
> >     https://cygwin.com/cygwin-ug-net/using.html#pathnames-win32
>
> > However, I wonder why e:\ is interpreted by mkdir as e:, and as
> > /drv/e (that is as e:\) by rmdir.
>
> > Any reason for this remarkable difference?
> 
> mkdir(2) has some special code from 2009 which drops trailing
> {back}slashes to perform a bordercase in mkdir Linux-compatible.
> This code snippet doesn't exist in rmdir(2).

.. uhm, I must be speaking to the alter ego of Corinna V,. because
as far as I know, Corinna has given herself some time off ...

Perhaps you could make an entry in her "TODO list" that the 3 lines
above requires some more explanation for pour souls like me.

No, there is no hurry ...

Henri


--
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