delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/11/27/12:09:07

X-Recipient: archive-cygwin AT delorie DOT 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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=Eu6r0g70s9xlM4YD
s7D3EkU9e4Cwlj+vGbz1oiJoVsQuig7uXmf4cLPJiF/SdMPe0Xj3Xuf8YiMi+wEu
CHY4yAvUxb0eRbXw/mTjxezhQ4raAHjfIVGRZSmXrPVUvkXaPrTIRyucNusD1ZEB
urtCKQH4b5HvHpTjTjp3LVnJO98=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=Ntl/BnFrupNRQkibZ+6ny+
STgX4=; b=oeOULjpn7AB5W0r3iewRQRA0OYGtwov6L6VkYu/KXydenY9E22lpAn
0ZinASUQfuxIhtRxMsorx5SdLQRM1vVY+xQDsDYRSxajtO5d2JJ0FNnESbjs/PwT
tHyC5CmLHg0QGlOJVoiC0b1mnrgy85rwBs+K2HOP1usDAyXdV9mOI=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-wm0-f54.google.com
X-Received: by 10.194.89.170 with SMTP id bp10mr39595297wjb.7.1448644129819; Fri, 27 Nov 2015 09:08:49 -0800 (PST)
Subject: Re: Argument parsing with gcc compiled program
To: cygwin AT cygwin DOT com
References: <CAO1jNwu2RXpCn2JuaZEhGaFA4_UTW9dxPxRcoasRuUBwgbRQgA AT mail DOT gmail DOT com> <91DCAC3CB99C724EB365BB64677FBE7B01DFDC AT MX204CL04 DOT corp DOT emc DOT com>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Message-ID: <56588E1C.60904@gmail.com>
Date: Fri, 27 Nov 2015 18:08:44 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
MIME-Version: 1.0
In-Reply-To: <91DCAC3CB99C724EB365BB64677FBE7B01DFDC@MX204CL04.corp.emc.com>
X-IsSubscribed: yes


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

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019