diff options
author | Roland McGrath <roland@redhat.com> | 1994-09-26 22:45:08 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1994-09-26 22:45:08 +0000 |
commit | 2feb36f6204cf02d77d63af33df09cbbbe3d65b2 (patch) | |
tree | dc6daea2330e1b92db120bdb7424ff28b2a5c6c6 /main.c | |
parent | f40918e0055440fd9d139af2d2f5fb97379d5255 (diff) | |
download | gunmake-2feb36f6204cf02d77d63af33df09cbbbe3d65b2.tar.gz |
(quote_as_word): Actually test DOUBLE_DOLLARS, instead of always doubling.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++; } |