X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Thu, 18 Feb 2010 21:42:39 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: CreateProcess() - executed program gets different argument   	depending if it's compiled with gcc (cygwin) or cl (VS)?
Message-ID: <20100218204239.GX5683@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <98f79fac1002180955m1ddea014id0b27cc3b909a17a@mail.gmail.com>  <4B7D80B3.4000300@cygwin.com>  <98f79fac1002181224g7987690dn6822d025d1a59405@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <98f79fac1002181224g7987690dn6822d025d1a59405@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
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

On Feb 18 21:24, Piotr Krukowiecki wrote:
> On Thu, Feb 18, 2010 at 7:02 PM, Larry Hall (Cygwin)
> <reply-to-list-only-lh@cygwin.com> wrote:
> > On 02/18/2010 12:55 PM, Piotr Krukowiecki wrote:
> >> - 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)
> > '\' 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.
> 
> "\\hostname" is remote path location, I don't think I can use
> "//hostname" instead, either for cygwin program and especially not for
> not-cygwin program, can I? (can't check it now)

Yes, you can use forward slashes, even in Win32 calls.  In Cygwin you
*should* use them, otherwise you lose certain functionality.  The next
version of the Cygwin User's Guide, which will come with Cygwin 1.7.2,
adds additional description about this.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

