about summary refs log tree commit diff
path: root/Src/cond.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/cond.c')
-rw-r--r--Src/cond.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/cond.c b/Src/cond.c
index caa675f2e..0ee8fae7c 100644
--- a/Src/cond.c
+++ b/Src/cond.c
@@ -117,7 +117,8 @@ evalcond(Cond c)
 	if (c->type < COND_MOD) {
 	    char *rt = (char *) right;
 	    if (c->type == COND_STREQ || c->type == COND_STRNEQ) {
-		rt = dupstring(rt);
+		rt = dupstring(c->right);
+		singsub(&rt);
 		untokenize(rt);
 	    }
 	    fprintf(stderr, " %s %s %s", (char *)left, condstr[c->type],