X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:subject:date:message-id:content-type
	:content-transfer-encoding:mime-version; q=dns; s=default; b=l8G
	7KiKDzfSZZMoaqPIsHyuyBvuaau9gZCRiEcPFtiu8hDs4N7sb9H2RbpdFsdDI7u2
	clfYvPuyN3I13vIco4Ur/WhNU24q0yaiLKt+z0B6CA6f4PBVqjnFVErUpf38Y/N5
	bmIteYTI27CgcTTT4PEHDXZc5bP0Li8Sx59BcRJg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:subject:date:message-id:content-type
	:content-transfer-encoding:mime-version; s=default; bh=kTGOy3NED
	s70sZMN76RSt6qJfaw=; b=RTeF5azaM2nJR7yotEdBBN9LUXFOD2kw4xjhjSzbS
	EMmwcJMX3Zh+fI8NCesUgsoJkWplLVMwowMxK4mxi+m041U4vM90n9Hh2pihPvff
	v5R5oLxO9KTjiSboW8iBkBocT57kzGRNKJU8aBTrDYDrJIaOfX0YgWSYCwiHtQVr
	js=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_00,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: mailuogwdur.emc.com
X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd51.lss.emc.com tARHY00m011547
X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd51.lss.emc.com tARHY00m011547
From: "Gluszczak, Glenn" <glenn.gluszczak@emc.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Re: Argument parsing with gcc compiled program
Date: Fri, 27 Nov 2015 17:33:45 +0000
Message-ID: <91DCAC3CB99C724EB365BB64677FBE7B01E08F@MX204CL04.corp.emc.com>
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
X-Sentrion-Hostname: mailusrhubprd53.lss.emc.com
X-RSA-Classifications: public
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id tARHYEEl020266

>* From: Marco Atzeri <marco dot atzeri at gmail dot com>
>* To: cygwin at cygwin dot com
>* Date: Fri, 27 Nov 2015 18:08:44 +0100
>* Subject: Re: Argument parsing with gcc compiled program
>* Authentication-results: sourceware.org; auth=none
>* References: <CAO1jNwu2RXpCn2JuaZEhGaFA4_UTW9dxPxRcoasRuUBwgbRQgA at mail dot gmail dot com> <91DCAC3CB99C724EB365BB64677FBE7B01DFDC >at MX204CL04 dot corp dot emc dot com>
>________________________________________

>On 27/11/2015 17:55, Gluszczak, Glenn wrote:
>On Fri, Nov 27, 2015 at 5:03 PM, Gluszczak, Glenn  wrote:

>Please look at my example again.  The same program compiled with Visual Studio does *not*
>strip out the backslash whether run in cmd.exe or bash.exe.  Other utilities like Perl
>do not strip out the backslash either.  It is only programs I compile with Cygwin gcc that do this.

>So if I compile with MS Visual Studio, binaries do not strip backslashes out of
>arguments whether run in bash or cmd.

>If I compile with Cygwin gcc, backslashes are stripped whether in bash or cmd.

>This looks like a compiler issue to me unless someone knows of an option.

>https://cygwin.com/ml/cygwin/2004-07/msg01036.html


Thanks for the email reference.  Cygwin.dll always strips backslashes so I'm stuck compiling with VS, ok.

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


