delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/03/20/18:35:46

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:from:to:subject:date:message-id:content-type
:content-transfer-encoding:mime-version; q=dns; s=default; b=CcF
t5CSh2QN3NxHLnnbmESlz+GZpCg5hsfgwhHFc2AQyufeu8IL7HEEL6RndFlBdU9O
qdzWPPlNzTd/gXPX3BdrjhP+aMoX9Zh2LDTApVP+i5RhwMhgOvHyBuNRIq7x1o0q
FXHiWkzXlSYngO5cDuo+YObQceYtHg+7YPqeZWvE=
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=b04P47pU9
eCfKEVMuiyJh+fqYw8=; b=dk0Dl+j+MiApdf9ip3FC8eOIE4hu459YpRiwUn+lK
qmED1ZY0n5spJtbat63I92TOxzQ/kfjy5WSO3wa9h31jeinhQwntPtE0Y4tAVglS
6UfnmdKAz8Nj5sjl+dFlP5hkbbA0dpteaOWFuEH/VLSsW64b89ElU+9Jqh8YnG4D
K0=
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=-0.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2
X-HELO: tx2outboundpool.messaging.microsoft.com
X-Forefront-Antispam-Report: CIP:157.56.249.197;KIP:(null);UIP:(null);IPV:NLI;H:AM2PRD0210HT001.eurprd02.prod.outlook.com;RD:none;EFVD:NLI
X-SpamScore: 1
X-BigFish: PS1(z21eI579ehzzz1f42h208ch1ee6h1de0h1fdah2073h2146h1202h1e76h2189h1d1ah1d2ah21bch1fc6hzz177df4h17326ah8275bh1de097h186068hz2fh109h2a8h839h944hd24hf0ah1220h1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh162dh1631h1758h18e1h1946h19b5h19ceh1ad9h1b0ah224fh1d07h1d0ch1d2eh1d3fh1dc1h1de9h1dfeh1dffh1e1dh1fe8h1ff5h2216h22d0h2336h2461h2487h24d7h2516h2545h255eh25cch25f6h2605h262fh9a9j1155h)
Received-SPF: pass (mail170-tx2: domain of dnvgl.com designates 157.56.249.197 as permitted sender) client-ip=157.56.249.197; envelope-from=mark DOT weber AT dnvgl DOT com; helo=AM2PRD0210HT001.eurprd02.prod.outlook.com ;.outlook.com ;
X-Forefront-Antispam-Report-Untrusted: SFV:NSPM;SFS:(10009001)(6009001)(428001)(199002)(189002)(5423002)(15202345003)(66066001)(74502001)(47446002)(87936001)(31966008)(74662001)(56816005)(81542001)(15395725003)(2656002)(90146001)(85306002)(74316001)(81686001)(80976001)(74366001)(15975445006)(81816001)(74706001)(74876001)(19580395003)(79102001)(83322001)(80022001)(59766001)(63696002)(20776003)(65816001)(69226001)(97186001)(97336001)(77096001)(76482001)(93136001)(81342001)(56776001)(94946001)(54316002)(93516002)(76796001)(76786001)(92566001)(47736001)(49866001)(46102001)(77982001)(87266001)(4396001)(47976001)(86362001)(50986001)(53806001)(76576001)(94316002)(95666003)(95416001)(51856001)(76176001)(33646001)(54356001)(83072002)(85852003)(24736002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM3PR02MB115;H:AM3PR02MB113.eurprd02.prod.outlook.com;FPR:BBA6D9E8.2D360779.F1DC1FBB.44E77983.20174;MLV:sfv;PTR:InfoNoRecords;A:1;MX:1;LANG:en;
From: "Weber, Mark" <mark DOT weber AT dnvgl DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: batch script execution failing with 255 exit code in cygwin 1.7.28
Date: Thu, 20 Mar 2014 22:35:06 +0000
Message-ID: <c5e68d3dcf7a4c03af0921dabf0542f3@AM3PR02MB113.eurprd02.prod.outlook.com>
x-forefront-prvs: 01565FED4C
MIME-Version: 1.0
X-OriginatorOrg: dnvgl.com
X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn%
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id s2KMZgit002232

I am also having some trouble with the latest version of Cygwin, which includes 
this patch.

See
http://cygwin.com/ml/cygwin-patches/2014-q1/msg00017.html
for example.


I am having a related issue, with C++ code that parses the command line.

The command line we support is something like -
  program_name   arg1  -option1=val1  -option2=val2  ...

You get the idea.

Now, with the above mentioned Cygwin patch, we are seeing the input arguments

arg1  "-option1=val1"   "-option2=val2"  ...

If this were the extent of the issue, it would be no big deal to 
strip off the quotes. However, the user may have put quotes on the 
command line himself, which Cygwin now moves around.
Such as:
  program_name  arg1  -option1="file name with spaces in it"

With the patch, is there any way to reliably tell what the user entered 
on the command line?



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