Re: Incorrect quoting of """" """" in master branch, with SHELL=cmd.exe
Eli Zaretskii <[email protected]> Tue, 07 May 2013 05:37:58 +0300
| Newsgroups | gmane.comp.gnu.make.windows |
|---|---|
| Message-ID | <[email protected]> |
> Date: Mon, 6 May 2013 22:26:14 +0200 > From: Erik Carstensen <[email protected]> > Cc: [email protected] > > > why not use this instead: > > > > SHELL=cmd.exe > > default: > > $(MAKE) -f foo.mk x="a b" > > > > The problem is that foo.mk will use $(x) directly in shell invocations. Then you can quote $(x) inside foo.mk, as in "$(x)". > Furthermore, foo.mk is provided by the user, and I don't want to ask my > users to worry about quoting. Well, quoting something that might include whitespace is natural. > But these details are not so relevant, as \" indeed would solve this use > case. Right.