Re: Bug: make fails to execute .BAT files with space in the path, with SHELL=cmd.exe

Eli Zaretskii <[email protected]> Mon, 29 Apr 2013 05:40:25 +0300
Newsgroups gmane.comp.gnu.make.windows
Message-ID <[email protected]>
> Date: Sun, 28 Apr 2013 22:15:11 +0200
> From: Erik Carstensen <[email protected]>
> Cc: [email protected]
> 
> The problem only happens when make attempts to run the command directly
> (short-circuiting cmd.exe). So one workaround might be to quote spaces with
> double quotes instead of backslashes when invoking commands.

Alas, this won't help you for long, because the next release of Make
will not invoke cmd.exe just because the command line has quotes.
Such commands are also short-circuited in the development sources.

When invoking commands through cmd.exe, the problem disappears because
cmd.exe's name does not include whitespace.  As I wrote, the problem
only happens when _both_ the command and its arguments are quited and
include whitespace.  I'm not yet sure why this triggers the problem.