summaryrefslogtreecommitdiffstats
path: root/cmd.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-01-06 14:01:15 +0000
committerThomas Adam <thomas@xteddy.org>2017-01-06 14:01:15 +0000
commita3428487a787c9ab43cd628338dcc290499891ae (patch)
treea82222b0cd94e22370eaae0ed6a8c679202e10e5 /cmd.c
parent58642011df2ccb02d405626e641ad9f11945a276 (diff)
parentcae0fbbe8c7cc16ac38aa8149ef9b4e2a54bce0e (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'cmd.c')
-rw-r--r--cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd.c b/cmd.c
index 8d5fec64..79341078 100644
--- a/cmd.c
+++ b/cmd.c
@@ -691,7 +691,7 @@ cmd_template_replace(const char *template, const char *s, int idx)
buf = xrealloc(buf, len + (strlen(s) * 2) + 1);
for (cp = s; *cp != '\0'; cp++) {
- if (quoted && *cp == '"')
+ if (quoted && (*cp == '"' || *cp == '$'))
buf[len++] = '\\';
buf[len++] = *cp;
}