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


Greetings, Csaba Raduly!

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

Neither is possible without sophisticated wrapper... This is called from menu
entry in FAR Manager.
:( I'd, however, try to get this through as a feature request...

> Or protect the backslashes: use single quotes

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

Unfortunatelly...

diff.exe -cdb -x "CVS" -x ".svn" -I "\$Id.*\$" --strip-trailing-cr -- '\\REMOTE\C$\...\GalleryClass.php' 'C:\...\GalleryClass.php'
diff: \REMOTE\C$\...\GalleryClass.php: No such file or directory



--
WBR,
 Andrey Repin (anrdaemon@freemail.ru) 17.08.2010, <22:48>

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]