summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index ac4be34..7aae9f5 100644
--- a/main.c
+++ b/main.c
@@ -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++;
}