From: Marco Atzeri <marco.atzeri@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Formatting command line arguments when starting a Cygwin process from a native process
Date: Mon, 09 May 2016 10:06:00 -0000 [thread overview]
Message-ID: <8d8fe966-caeb-491c-32e7-fc48ccd56d74@gmail.com> (raw)
In-Reply-To: <6e1f2ba2-0c8e-4659-4c5a-d748e90c1ced@lysator.liu.se>
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
next prev parent reply other threads:[~2016-05-09 10:06 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-05 15:24 David Allsopp
2016-05-05 16:47 ` Erik Soderquist
2016-05-06 8:03 ` David Allsopp
2016-05-06 13:17 ` Erik Soderquist
2016-05-06 14:35 ` Andrey Repin
2016-05-07 7:45 ` David Allsopp
2016-05-09 9:43 ` Peter Rosin
2016-05-09 10:06 ` Marco Atzeri [this message]
2016-05-09 15:49 ` David Allsopp
2016-05-09 16:02 ` Marco Atzeri
2016-05-09 16:14 ` David Allsopp
2016-05-09 15:49 ` David Allsopp
2016-05-09 14:57 ` Aaron Digulla
2016-05-09 15:19 ` David Allsopp
2016-05-10 13:30 ` Aaron Digulla
2016-05-10 17:02 ` David Allsopp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8d8fe966-caeb-491c-32e7-fc48ccd56d74@gmail.com \
--to=marco.atzeri@gmail.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).