delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/08/27/08:52:10

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:mime-version:content-type
:content-transfer-encoding:date:from:to:subject:message-id; q=
dns; s=default; b=GcvZhwlo4FvXI1m/61uDSLmpgS+zncB88OG2O0wGdcbFS2
ADrxImiUlHsspwJstx0zu55y1B+gJjSq8NtCMxKxdWRgfWEJCCho0GqQp7c7G5fC
eWSWkbkING3QHmg99C3QPVK3gB1EJVDjOyqZwY45uHSFIHMcPfbdhrXXS8CAU=
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:mime-version:content-type
:content-transfer-encoding:date:from:to:subject:message-id; s=
default; bh=MvDhkZUK4N8JiR40x2T1ZBe4Yys=; b=ZejpFEPQOfygr2gJWGnu
4MH190KSe7FY9fQzsmUBK3BKUgQ1ubd2V5YWiAgEpKDc6SWvMs2keJNT8dLFUWqq
eeVaL1l3suYTbyU1pkufshObbkKBroBJaZzp9XLSjnFD1+ZLhMqUifGJ7bDge/G1
z09+TiLVEtTbDy+Vam6YCbE=
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.1 required=5.0 tests=AWL,BAYES_05,NORMAL_HTTP_TO_IP,NUMERIC_HTTP_ADDR,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=Ben, HX-Languages-Length:1060, H*RU:sk:webmail, HX-Spam-Relays-External:sk:webmail
X-HELO: lb1-smtp-cloud7.xs4all.net
MIME-Version: 1.0
Date: Tue, 27 Aug 2019 14:51:08 +0200
From: Houder <houder AT xs4all DOT nl>
To: cygwin AT cygwin DOT com
Subject: Odd, is it not? mkdir 'e:\' cannot be undone by rmdir 'e:\' ...
Message-ID: <bc3df101ab93c20b86c3ab7fa7d3ea4f@xs4all.nl>
X-Sender: houder AT xs4all DOT nl
User-Agent: XS4ALL Webmail

L.S.,

# note: cygdrive has been remapped to /drv at my place

64-%% uname -a
CYGWIN_NT-6.1 Seven 3.0.7(0.338/5/3) 2019-04-30 18:08 x86_64 Cygwin
64-%% mkdir /drv/e
mkdir: cannot create directory ā€˜/drv/eā€™: Permission denied

64-@@ uname -a
CYGWIN_NT-6.1 Seven 3.1.0(0.340/5/3) 2019-08-19 10:13 x86_64 Cygwin
64-@@ mkdir /drv/e
mkdir: cannot create directory ā€˜/drv/eā€™: File exists

Different error report (which was the objective of Ben Wijen):

     https://cygwin.com/ml/cygwin-patches/2019-q2/msg00136.html

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?

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