summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cli_new.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cli_new.c b/src/cli_new.c
index 1c77a13..dceeaa6 100644
--- a/src/cli_new.c
+++ b/src/cli_new.c
@@ -1372,10 +1372,8 @@ static int expand_string(char *stringp)
/* back in business */
}
if (*scanp != '$') {
- if(*scanp == '\\' && scanp[1] == '$') {
- /* escaped $, treat as regular char */
- ++scanp;
- }
+ /* we don't check for '\''$' any more.
+ * only "$VAR(" is significant now */
*resp++ = *scanp++;
--left;
} else if (strlen(scanp) < (VAR_REF_MARKER_LEN + 1 + 1)) {