[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Incorrect quoting of """" """" in master branch, with SHELL=cmd.exe
From: |
Eli Zaretskii |
Subject: |
Re: Incorrect quoting of """" """" in master branch, with SHELL=cmd.exe |
Date: |
Tue, 07 May 2013 05:37:58 +0300 |
> Date: Mon, 6 May 2013 22:26:14 +0200
> From: Erik Carstensen <address@hidden>
> Cc: address@hidden
>
> > 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.