X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=3.2 required=5.0	tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT
X-Spam-Check-By: sourceware.org
Date: Tue, 17 Aug 2010 22:58:42 +0400
From: Andrey Repin <anrdaemon@freemail.ru>
Reply-To: Andrey Repin <cygwin@cygwin.com>
Message-ID: <1236947283.20100817225842@mtu-net.ru>
To: Csaba Raduly <rcsaba@gmail.com>, cygwin@cygwin.com
Subject: Re: Path conversion issue
In-Reply-To: <AANLkTi=sYzj57_PJ495S074qndXtp5fq6qdr5ZoEMQq5@mail.gmail.com>
References: <1443726680.20100817060325@mtu-net.ru> <4C69FF69.3060402@cygwin.com> <AANLkTi=sYzj57_PJ495S074qndXtp5fq6qdr5ZoEMQq5@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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

