X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org X-Yahoo-SMTP: Uu383n6swBCEN1G9up0WSnxbvN8fCPmk Message-ID: <4C6AE7BA.40903@cygwin.com> Date: Tue, 17 Aug 2010 15:49:14 -0400 From: "Larry Hall \(Cygwin\)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Path conversion issue References: <1443726680 DOT 20100817060325 AT mtu-net DOT ru> <4C69FF69 DOT 3060402 AT cygwin DOT com> <1236947283 DOT 20100817225842 AT mtu-net DOT ru> In-Reply-To: <1236947283.20100817225842@mtu-net.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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