(quote_as_word): Actually test DOUBLE_DOLLARS, instead of always doubling.

This commit is contained in:
Roland McGrath 1994-09-26 22:45:08 +00:00
parent f40918e005
commit 2feb36f620

2
main.c
View file

@ -1555,7 +1555,7 @@ quote_as_word (out, in, double_dollars)
{
if (index ("^;'\"*?[]$<>(){}|&~`\\ \t\r\n\f\v", *in) != 0)
*out++ = '\\';
if (*in == '$')
if (double_dollars && *in == '$')
*out++ = '$';
*out++ = *in++;
}