bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #41246] Allow to switch shell batch mode at runtime instead of


From: grischka
Subject: Re: [bug #41246] Allow to switch shell batch mode at runtime instead of build time
Date: Fri, 31 Jan 2014 18:20:58 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Paul Smith wrote:
My question, or _challenge_ if you like, is whether we can find a way to
know, without any hints from the user, whether a given command line will
work properly for /bin/sh -c in Windows, or if it needs to use a batch
file.

And the answer is:  Always (would it work properly without batch file).
It is just a matter of quoting the argument appropriately.

For example, with cygwin/msys "sh -c args" called via CreateProcess
in make needs double quotes around "args" as well as " and \ escaped
with \ inside.

Whereas "cmd /c args" just needs quotes around "args".  (Actually not
always but doesn't hurt).

--- grischka



reply via email to

[Prev in Thread] Current Thread [Next in Thread]