delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=2.5 required=5.0 tests=AWL,BAYES_00,BOTNET |
X-Spam-Check-By: | sourceware.org |
Message-id: | <4B7D80B3.4000300@cygwin.com> |
Date: | Thu, 18 Feb 2010 13:02:27 -0500 |
From: | "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> |
Reply-to: | cygwin AT cygwin DOT com |
User-Agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 |
MIME-version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: CreateProcess() - executed program gets different argument depending if it's compiled with gcc (cygwin) or cl (VS)? |
References: | <98f79fac1002180955m1ddea014id0b27cc3b909a17a AT mail DOT gmail DOT com> |
In-reply-to: | <98f79fac1002180955m1ddea014id0b27cc3b909a17a@mail.gmail.com> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 02/18/2010 12:55 PM, Piotr Krukowiecki wrote: > Hello, > > In short, I have a problem with passing "\\127.0.0.127\foo.cxx" > argument to a called program: > > - if the executed program is compiled with cygwin's gcc the program > receives \127.0.0.127\foo.cxx (just one backslash at the begining). > - if it's compiled with cl it gets \\127.0.0.127\foo.cxx (double > backslash - what I expected) > > I suspect cygwin incorrectly mangles backslashes in this case - or > maybe I'm quoting it incorrectly, or it is Windows fault? '\' is an escape character in C, Unix, and Linux. In Windows, it's a path separator. Use '/' instead when working with Cygwin and you'll avoid allot of problems. Better yet, use POSIX paths exclusively. -- Larry Hall http://www.rfk.com 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: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |