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, Larry Hall (Cygwin)!

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

Oh, God! You definitely want to know more!
http://www.farmanager.com/index.php?l=en

Basically, the 3 programs i'm running daily are: FAR, Opera and The Bat!.
I hardly need anything else, be it regedit, control panel or code editor.
FAR offer as much as humanly possible through multiple plugins, and if you'r
daily work is with console and/or code writing, you are unlikely to find
better alternative.

> But I figured I'd through it out there.

I can see several ways to embed it here, but it'd be better if path
translation could be more smooth. It's not always you're working with so
flexible tools.


--
WBR,
 Andrey Repin (anrdaemon@freemail.ru) 18.08.2010, <1:30>

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]