cygpath and unc paths
Andrey Repin
anrdaemon@yandex.ru
Mon Dec 16 13:00:57 GMT 2024
Greetings, Federico Kircheis!
>>> 1)
>>> root path, like C:\ , because for whatever reason \\?\C:\ is not valid, it
>>> has to be a subfolder (and trying to trick it with \\?\C:\\ does not work
>>> either).
>> > In which scenario? \\?\C:\ is just the same as \??\C:\ in NT speak, and
>> that's a perfectly valid directory path.
> I've never seen \??\C:\.
> My test case, from powershell (which I do definitively _not_ know well
> enough, otherwise I wouldn't be using cygwin) was
> cd C:\ # success
> cd \\?\C:\ # fail
> cd C:\windows # success
> cd \\?\C:\windows # success
This way, you're testing command interpreter, not WinApi.
The command interpreter has its own ideas about what you can and can not use
with it.
> and repeat the same operation with dir instead of ls.
> The error message is that the "value of argument path is not valid"
F.e. Far manager works just fine with `goto:\\?\C:\`. More or less.
--
With best regards,
Andrey Repin
Monday, December 16, 2024 15:57:08
Sorry for my terrible english...
More information about the Cygwin
mailing list