summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-01-30 14:08:43 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2008-01-30 14:08:43 -0800
commitc5905210c8569ffc432b74fe78b553e09da6d776 (patch)
treec9bd17cfe7323948a5b428976df5da38ba839470 /src
parent4450235ce73d88d093de726317ee72b5915bb94a (diff)
downloadvyatta-cfg-c5905210c8569ffc432b74fe78b553e09da6d776.tar.gz
vyatta-cfg-c5905210c8569ffc432b74fe78b553e09da6d776.zip
don't check escaped '$' in string expansion
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)) {