Path conversion issue

Csaba Raduly rcsaba@gmail.com
Tue Aug 17 07:36:00 GMT 2010


On Tue, Aug 17, 2010 at 5:18 AM, Larry Hall (Cygwin)  wrote:
> On 8/16/2010 10:03 PM, Andrey Repin wrote:
>> diff.exe -cdb -x "CVS" -x ".svn" -I "\$Id.*\$" --strip-trailing-cr --
>> "C:\...\php-tools\GalleryClass.php"
>> "\\REMOTE\C$\...\php-tools\GalleryClass.php"
>> diff: \REMOTE\C$\...\php-tools\GalleryClass.php: No such file or directory
>>
>> Why it ate the leading backslash?
>
> '\' is a escape character for Cygwin just the way it is in UNIX/Linux.
> You either need to escape it or, better yet, use forward slashes.

Or protect the backslashes: use single quotes

'\\REMOTE\C$\...\php-tools\GalleryClass.php'



-- 
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

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



More information about the Cygwin mailing list