mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-12-21 00:02:19 -05:00
(quote_as_word): Actually test DOUBLE_DOLLARS, instead of always doubling.
This commit is contained in:
parent
f40918e005
commit
2feb36f620
2
main.c
2
main.c
@ -1555,7 +1555,7 @@ quote_as_word (out, in, double_dollars)
|
|||||||
{
|
{
|
||||||
if (index ("^;'\"*?[]$<>(){}|&~`\\ \t\r\n\f\v", *in) != 0)
|
if (index ("^;'\"*?[]$<>(){}|&~`\\ \t\r\n\f\v", *in) != 0)
|
||||||
*out++ = '\\';
|
*out++ = '\\';
|
||||||
if (*in == '$')
|
if (double_dollars && *in == '$')
|
||||||
*out++ = '$';
|
*out++ = '$';
|
||||||
*out++ = *in++;
|
*out++ = *in++;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user