diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-01-30 14:08:43 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-01-30 14:08:43 -0800 |
commit | c5905210c8569ffc432b74fe78b553e09da6d776 (patch) | |
tree | c9bd17cfe7323948a5b428976df5da38ba839470 /src/cli_new.c | |
parent | 4450235ce73d88d093de726317ee72b5915bb94a (diff) | |
download | vyatta-cfg-c5905210c8569ffc432b74fe78b553e09da6d776.tar.gz vyatta-cfg-c5905210c8569ffc432b74fe78b553e09da6d776.zip |
don't check escaped '$' in string expansion
Diffstat (limited to 'src/cli_new.c')
-rw-r--r-- | src/cli_new.c | 6 |
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)) { |