public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Odd, is it not? mkdir 'e:\' cannot be undone by rmdir 'e:\' ...
@ 2019-08-27 15:25 Houder
  2019-08-27 16:28 ` Corinna Vinschen
  2019-08-28 13:36 ` Eric Blake
  0 siblings, 2 replies; 32+ messages in thread
From: Houder @ 2019-08-27 15:25 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2019-09-22 11:55 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-27 15:25 Odd, is it not? mkdir 'e:\' cannot be undone by rmdir 'e:\' Houder
2019-08-27 16:28 ` Corinna Vinschen
2019-08-27 17:01   ` Houder
2019-08-27 17:32     ` Vince Rice
2019-08-27 17:50       ` Corinna Vinschen
2019-08-28  7:16       ` Houder
2019-08-28  9:22         ` john doe
2019-08-28 11:47           ` Houder
2019-08-28 13:22         ` Corinna Vinschen
2019-08-28 14:16           ` Eric Blake
2019-08-28 14:22             ` Corinna Vinschen
2019-08-28 15:18               ` Corinna Vinschen
2019-08-29 15:19                 ` Houder
2019-08-30  8:20                   ` Corinna Vinschen
2019-08-30 12:42                   ` Houder
2019-09-01 17:38                     ` Houder
2019-09-02  8:15                       ` Corinna Vinschen
2019-09-03  8:40                         ` Houder
2019-09-03  6:50                       ` Andrey Repin
2019-09-19 19:51                       ` Ken Brown
2019-09-20  9:11                         ` Houder
2019-09-20 18:20                           ` Houder
2019-09-21 16:07                             ` Ken Brown
2019-09-22  7:34                               ` Houder
2019-09-22 14:12                                 ` Ken Brown
2019-09-07  3:47                 ` L A Walsh
2019-08-27 19:48   ` Achim Gratz
2019-08-27 20:58     ` Brian Inglis
2019-08-28  7:16       ` Corinna Vinschen
2019-08-27 22:21     ` Achim Gratz
2019-08-28 13:36 ` Eric Blake
2019-08-28 22:57   ` Houder

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