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: Path conversion issue


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]