This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ls \\\\\?\\DRIVE\\ Aborted (core dumped)


Greetings, Jürgen Wagner!

Please no top-posting in this list. Thank you in advance.

> ls \\\\.\\d:\\
> ls: cannot access '\\.\d:\': Not a directory
=>> The alternative notation with a "." does not seem to be understood. 
> It works in DOS shells.

This is not an "alternative notation", this is a "device namespace".
Shell is not necessarily an indication of the right path.
You may be better off writing a small program that calling Win32 CreateFile
directly, if you want to test various paths.
Ref: https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file

> ls //\?/d:/
> ls: cannot access '//?/d:/': Not a directory
=>> The replacement notation with forward slashes (which works with UNC 
> paths) does not seem to be honored here.

Which is also dubious in case of Cygwin.
And double forward slashes are indicating Cygwin UNC path.
Not a Windows NT namespace prefix.

> It seems to me the device notation is not really implemented in Cygwin, 
> and if invalid device paths are used or strange, invalid syntactic forms 
> are used, this fails with a core dump.

> This is on CYGWIN_NT-10.0 saraswati 3.0.7(0.338/5/3) 2019-04-30 18:08 
> x86_64 Cygwin on a Dell 5470 with the latest Windows 10 version.


-- 
With best regards,
Andrey Repin
Tuesday, September 24, 2019 15:41:52

Sorry for my terrible english...
--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]