Path conversion issue

Larry Hall (Cygwin) reply-to-list-only-lh@cygwin.com
Tue Aug 17 19:49:00 GMT 2010


On 8/17/2010 2:58 PM, Andrey Repin wrote:
> 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

Seems like if you can change the quotes, you're very close to being
able to invoke 'cygpath' to do the conversion you need.  Since I know
nothing about Far Manager, I don't know if this is a small step or a
huge leap.  But I figured I'd through it out there.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

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