[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
Re: [bug #41246] Allow to switch shell batch mode at runtime instead of build time
Fri, 31 Jan 2014 18:20:58 +0100
Thunderbird 188.8.131.52 (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
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).
|[Prev in Thread]
||[Next in Thread]|
- Re: [bug #41246] Allow to switch shell batch mode at runtime instead of build time,