Odd, is it not? mkdir 'e:\' cannot be undone by rmdir 'e:\' ...
Houder
houder@xs4all.nl
Tue Aug 27 17:01:00 GMT 2019
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
More information about the Cygwin
mailing list