www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/05/09/06:06:59

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=Tgm6VubKHuh1NveD
1HBSt652FicqyQ+L/0q7/oH//6rkKzcWnf3F3GvX9nmj/hpkI066jV+zZ7AQHHVD
rU9ZpdGinTBGSHI5H0/czPvqvVaTO8Pq9WIn5cjqdXHtAhay9UVinEIMb6LNnYEC
q4wl479rdvCYbUdNx7Na2siI8So=
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=KqulO3J0yJpDQ9akQiq5DC
QGhWU=; b=iH0Q7GYk40KMcwvRIZOCmBVz1yn8JVbfOb+4QqoIK+iAh2NOEiuarG
YZB+GeiGNJTZAXD/DCvfjrAoNHBYtxCK+n/RC7eK7haKkUtjErsVc8RWtOuRRbWb
ThQU7wUH23/ZDNm7NQJk8dS07yncj3uELbsV3Y0+u4iWDGpjZcL8M=
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.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=H*f:sk:9679549, H*f:sk:006301d, H*f:sk:6e1f2ba, H*i:sk:6e1f2ba
X-HELO: mail-wm0-f48.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=EqqMz3ijBNcxhWIlCsmI1ha4UJDzfSEWRkChMwxIuOg=; b=g7OQMOSeyGvwJBiL3wW5oOMEaQ3aB2XcfkvavFiXdbw6pEwt7Vi0jyFnmFaPM5CaCM XtNQT3/QR1FSXNs6DVbgdEO+s2EQi5dV+lZ22FLAw/Vmjz+RPbuPmD5sEW06nwi+v9FF NryhErrGEG1EsoZjP9CUC79iicIVPgR4SKZDSLGwsY3GIQ5gl5g1ZYU/dA0vCd6OtbkB 82MzofEbgSa3bnuemLeIIDDWj0EM05ve/uMuulUzIXw5w16rc3QiHspT/fdxNonW2ME/ wEA604e/dwxdUiiy//wRIiJHSlrMbfTp8EVt9lqq59Qqan9wUqippQFs2KxKlK9raKEJ ahJA==
X-Gm-Message-State: AOPr4FVlyI/9hzQjjtc3GZkyGGDuA37N4bUAI4XMh9x2L5l+mU1f3F+G6cTMnq1x79wHFw==
X-Received: by 10.28.2.67 with SMTP id 64mr9924294wmc.70.1462788388309; Mon, 09 May 2016 03:06:28 -0700 (PDT)
Subject: Re: Formatting command line arguments when starting a Cygwin process from a native process
To: cygwin AT cygwin DOT com
References: <005c01d1a6e2$30270ba0$907522e0$@metastack.com> <CACoZoo1LObZ0zu9X5O6dV4cO4jN+GO28bdRbuDkTMdaKHXpVbQ AT mail DOT gmail DOT com> <000101d1a76d$c37c6b80$4a754280$@metastack.com> <967954968 DOT 20160506172040 AT yandex DOT ru> <006301d1a834$6ccd1380$46673a80$@cantab.net> <6e1f2ba2-0c8e-4659-4c5a-d748e90c1ced AT lysator DOT liu DOT se>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Message-ID: <8d8fe966-caeb-491c-32e7-fc48ccd56d74@gmail.com>
Date: Mon, 9 May 2016 12:06:20 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0
MIME-Version: 1.0
In-Reply-To: <6e1f2ba2-0c8e-4659-4c5a-d748e90c1ced@lysator.liu.se>
X-IsSubscribed: yes

On 09/05/2016 11:43, Peter Rosin wrote:
> Hi!

>>
>>>> I'm not using cmd, or any shell for that matter (that's actually the
>>>> point) - I am in a native Win32 process invoking a Cygwin process
>>>> directly using the Windows API's CreateProcess call. As it happens,
>>>> the program I have already has the arguments for the Cygwin process
>>>> in an array, but Windows internally requires a single command line
>>>> string (which is not in any related to Cmd).

Ultimate overview of MS escape howto :

https://blogs.msdn.microsoft.com/twistylittlepassagesallalike/2011/04/23/everyone-quotes-command-line-arguments-the-wrong-way/

Regards
Marco



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