This is the mail archive of the
mailing list for the Cygwin project.
Odd, is it not? mkdir 'e:\' cannot be undone by rmdir 'e:\' ...
- From: Houder <houder at xs4all dot nl>
- To: cygwin at cygwin dot com
- Date: Tue, 27 Aug 2019 14:51:08 +0200
- Subject: Odd, is it not? mkdir 'e:\' cannot be undone by rmdir 'e:\' ...
# 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):
Now, let's play:
64-@@ cygpath -w /drv/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" ...
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?
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple