www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/17/17:40:24

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: Yes, hits=5.8 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,RAZOR2_CF_RANGE_51_100,RAZOR2_CF_RANGE_E8_51_100,RAZOR2_CHECK
X-Spam-Check-By: sourceware.org
Date: Wed, 18 Aug 2010 01:38:00 +0400
From: Andrey Repin <anrdaemon AT freemail DOT ru>
Reply-To: Andrey Repin <cygwin AT cygwin DOT com>
Message-ID: <687756115.20100818013800@mtu-net.ru>
To: "Larry Hall (Cygwin)" <cygwin AT cygwin DOT com>
Subject: Re: Path conversion issue
In-Reply-To: <4C6AE7BA.40903@cygwin.com>
References: <1443726680 DOT 20100817060325 AT mtu-net DOT ru> <4C69FF69 DOT 3060402 AT cygwin DOT com> <AANLkTi=sYzj57_PJ495S074qndXtp5fq6qdr5ZoEMQq5 AT mail DOT gmail DOT com> <1236947283 DOT 20100817225842 AT mtu-net DOT ru> <4C6AE7BA DOT 40903 AT cygwin DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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 AT freemail DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019