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: cygpath -u converts quoted UNC paths to local


Greetings, Corinna Vinschen!

> 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.

Oh, sorry, stupid habit of mine.
Yes, in Windows convention, shell (CMD) does not perform unquoting.
This makes it impossible to reliable pass parameters to cygpath.


-- 
With best regards,
Andrey Repin
Thursday, April 4, 2019 10:48:12

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]