mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-12-27 06:27:57 +00:00
(quote_as_word): Actually test DOUBLE_DOLLARS, instead of always doubling.
This commit is contained in:
parent
f40918e005
commit
2feb36f620
1 changed files with 1 additions and 1 deletions
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…
Reference in a new issue