cygpath and unc paths

Federico Kircheis federico@kircheis.it
Fri Dec 6 12:23:27 GMT 2024


Hello,

was it considered to add a flag to cygpath to output a path in unc format?


For example, the folder

C:\test.

cannot be accessed from many Windows applications (powershell and cmd 
included) because of the trailing dot, while cygwin has no issue 
creating, accessing and deleting such files/folders.

Using an unc path

\\?\C:\test.

solves the issue for some programs, but cygpath currently misses an 
option for creating such path.

Notice that creating a dos path leads to an error.


More information about the Cygwin mailing list