> Date: Thu, 2 May 2013 14:16:19 +0200
> From: Erik Carstensen <mandolae...@gmail.com>
> Cc: make-w32@gnu.org
> 
> So I assume then that make is expected to use the same quoting rules as CMD
> when short-circuiting the shell.

Yes.  But not because of that change: you always were supposed to do
that.

> 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...)

It's not a bug: cmd.exe doesn't know about '..' quoting, so this
command is not supposed to work.  That it does without redirection is
sheer luck.

I don't want to rock the boat any further in this regard before the
next release of Make, so I don't want to forcibly disable '..' quoting
support when cmd.exe is used.  Make worked like that forever; I think
one incompatible change per release is more than enough ;-)

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

Thanks.  The NEWS entry I added does mention that some
incompatibilities in borderline cases could be caused by that change.
I guess this is one of them.

_______________________________________________
Make-w32 mailing list
Make-w32@gnu.org
https://lists.gnu.org/mailman/listinfo/make-w32

Reply via email to