From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 81089 invoked by alias); 27 Aug 2019 12:51:17 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 81082 invoked by uid 89); 27 Aug 2019 12:51:16 -0000 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 Received: from lb1-smtp-cloud7.xs4all.net (HELO lb1-smtp-cloud7.xs4all.net) (194.109.24.24) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 27 Aug 2019 12:51:14 +0000 Received: from webmail.xs4all.nl ([IPv6:2001:888:0:22:194:109:20:200]) by smtp-cloud7.xs4all.net with ESMTPA id 2awGiIyfyThuu2awGi8j1u; Tue, 27 Aug 2019 14:51:10 +0200 Received: from a83-162-234-136.adsl.xs4all.nl ([83.162.234.136]) by webmail.xs4all.nl with HTTP (HTTP/1.1 POST); Tue, 27 Aug 2019 14:51:08 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Tue, 27 Aug 2019 15:25:00 -0000 From: Houder To: cygwin@cygwin.com Subject: Odd, is it not? mkdir 'e:\' cannot be undone by rmdir 'e:\' ... Message-ID: X-Sender: houder@xs4all.nl User-Agent: XS4ALL Webmail X-SW-Source: 2019-08/txt/msg00335.txt.bz2 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