www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/17/03:36:20

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4C69FF69.3060402@cygwin.com>
References: <1443726680 DOT 20100817060325 AT mtu-net DOT ru> <4C69FF69 DOT 3060402 AT cygwin DOT com>
Date: Tue, 17 Aug 2010 09:35:24 +0200
Message-ID: <AANLkTi=sYzj57_PJ495S074qndXtp5fq6qdr5ZoEMQq5@mail.gmail.com>
Subject: Re: Path conversion issue
From: Csaba Raduly <rcsaba AT gmail DOT com>
To: cygwin AT cygwin DOT com
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

On Tue, Aug 17, 2010 at 5:18 AM, Larry Hall (Cygwin)  wrote:
> On 8/16/2010 10:03 PM, Andrey Repin wrote:
>> 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.

Or protect the backslashes: use single quotes

'\\REMOTE\C$\...\php-tools\GalleryClass.php'



-- 
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

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