cygpath -u converts quoted UNC paths to local
Corinna Vinschen
corinna-cygwin@cygwin.com
Wed Apr 3 16:31:00 GMT 2019
On Apr 3 19:20, Andrey Repin wrote:
> Greetings, All!
>
> This can be considered "working by design", but it really imposes some serious
> restrictions on interoperability with Cygwin, that I think can be avoided.
>
> ...
>
> After some further testing, this seems to be affecting IP-based UNC paths
> only.
>
> The essence is this:
>
> $ dir "\\192.168.1.5\wwwroot\ccenter\bin\online.sh"
> 26.10.2018 18:16 431 online.sh
>
> $ cygpath -u \\192.168.1.5\wwwroot\ccenter\bin\online.sh
> //192.168.1.5/wwwroot/ccenter/bin/online.sh
>
> $ cygpath -u "\\192.168.1.5\wwwroot\ccenter\bin\online.sh"
> /192.168.1.5/wwwroot/ccenter/bin/online.sh
This shows that it's not cygpath. It's the quoting, thus the shell
mangles the path.
Corinna
--
Corinna Vinschen
Cygwin Maintainer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20190403/6cc0ab36/attachment.sig>
More information about the Cygwin
mailing list