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: Subject: Re: Path conversion issue From: Csaba Raduly To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 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