summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1994-09-26 22:45:08 +0000
committerRoland McGrath <roland@redhat.com>1994-09-26 22:45:08 +0000
commit2feb36f6204cf02d77d63af33df09cbbbe3d65b2 (patch)
treedc6daea2330e1b92db120bdb7424ff28b2a5c6c6
parentf40918e0055440fd9d139af2d2f5fb97379d5255 (diff)
downloadgunmake-2feb36f6204cf02d77d63af33df09cbbbe3d65b2.tar.gz
(quote_as_word): Actually test DOUBLE_DOLLARS, instead of always doubling.
-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++;
}