From 84050f8fda521f122c2178000c4d1adb616c3560 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Tue, 1 Jul 2014 23:44:49 -0500 Subject: [PATCH] tuple: fix swallowing $ (closes #67) --- tuple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuple.c b/tuple.c index d378882..dc2a195 100644 --- a/tuple.c +++ b/tuple.c @@ -104,7 +104,7 @@ pkg_tuple_parse(pkg_list_t *vars, const char *value) for (ptr = value; *ptr != '\0' && bptr - buf < PKG_BUFSIZE; ptr++) { - if (*ptr != '$') + if (*ptr != '$' || (*ptr == '$' && *(ptr + 1) != '{')) *bptr++ = *ptr; else if (*(ptr + 1) == '{') {