make-w32
[Top][All Lists]
Advanced

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

Re: Bug: make fails to execute .BAT files with space in the path, with S


From: Erik Carstensen
Subject: Re: Bug: make fails to execute .BAT files with space in the path, with SHELL=cmd.exe
Date: Thu, 2 May 2013 14:16:19 +0200

On Wed, May 1, 2013 at 5:39 PM, Eli Zaretskii <address@hidden> wrote:

I fixed that in the repository; the patch is below if you want to try
it.

So I assume then that make is expected to use the same quoting rules as CMD when short-circuiting the shell. Then there is another bug: make's arg quoting has some special treatment for single quotes, whereas cmd.exe itself hasn't. So, in

SHELL=cmd.exe
default:
        'a b\x.bat'
        'a b\x.bat' >NUL

The first invocation of x.bat works, while the second one won't (''a' is not recognized as...)

This is not a problem for my use case, but it did add to my confusion when doing experiments.


reply via email to

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