This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Path conversion issue

On 8/16/2010 10:03 PM, Andrey Repin wrote:
Greetings, All!

Trying to find differences between local and remote file, I run into an issue:

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? Isn't it supposed to convert UNC path to
proper one? User's guide tell me this shouldn't be an issue, or so I read it
this way. Can anyone enlighten me on this matter, please?

'\' 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.

Larry Hall                    
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: FAQ: Documentation: Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]