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 _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make