diff options
author | Denys Vlasenko | 2010-09-09 14:04:57 +0200 |
---|---|---|
committer | Denys Vlasenko | 2010-09-09 14:04:57 +0200 |
commit | 101a4e3e2170e5ffa2bd2b06d7a71088a0ab8958 (patch) | |
tree | 308531a1fe9fcd7e6a5503e97a99465c9b8d5b1c /shell/hush_test/hush-vars | |
parent | 5b6210cf492dba4474d83a138c95b1267777826b (diff) | |
download | busybox-101a4e3e2170e5ffa2bd2b06d7a71088a0ab8958.zip busybox-101a4e3e2170e5ffa2bd2b06d7a71088a0ab8958.tar.gz |
hush: make parse_dollar flag quited status regardless of glob escaping status
function old new delta
parse_stream_dquoted 228 233 +5
parse_stream 2369 2371 +2
parse_dollar 730 717 -13
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 7/-13) Total: -6 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'shell/hush_test/hush-vars')
-rw-r--r-- | shell/hush_test/hush-vars/var_unbackslash.right | 20 | ||||
-rwxr-xr-x | shell/hush_test/hush-vars/var_unbackslash.tests | 6 |
2 files changed, 13 insertions, 13 deletions
diff --git a/shell/hush_test/hush-vars/var_unbackslash.right b/shell/hush_test/hush-vars/var_unbackslash.right index 20c2ddf..8bc8347 100644 --- a/shell/hush_test/hush-vars/var_unbackslash.right +++ b/shell/hush_test/hush-vars/var_unbackslash.right @@ -1,11 +1,11 @@ -b1=-qwerty-t-\-"---z-*-?- -b1=-qwerty-t-\-"---z-*-?- -b2=-qwerty-\t-\-"-\--\z-\*-\?- -b2=-qwerty-\t-\-"-\--\z-\*-\?- -b3=-$a-\t-\\-\"-\--\z-\*-\?- -b3=-$a-\t-\\-\"-\--\z-\*-\?- -c=-$a-\t-\\-\"-\--\z-\*-\?- -c=-$a-\t-\\-\"-\--\z-\*-\?- -c=-$a-\t-\\-\"-\--\z-\*-\?- -c=-$a-\t-\\-\"-\--\z-\*-\?- +b1=-qwerty-t-\-"-`---z-*-?- +b1=-qwerty-t-\-"-`---z-*-?- +b2=-qwerty-\t-\-"-`-\--\z-\*-\?- +b2=-qwerty-\t-\-"-`-\--\z-\*-\?- +b3=-$a-\t-\\-\"-\`-\--\z-\*-\?- +b3=-$a-\t-\\-\"-\`-\--\z-\*-\?- +c=-$a-\t-\\-\"-\`-\--\z-\*-\?- +c=-$a-\t-\\-\"-\`-\--\z-\*-\?- +c=-$a-\t-\\-\"-\`-\--\z-\*-\?- +c=-$a-\t-\\-\"-\`-\--\z-\*-\?- Done: 0 diff --git a/shell/hush_test/hush-vars/var_unbackslash.tests b/shell/hush_test/hush-vars/var_unbackslash.tests index 3c35d7d..bb52af3 100755 --- a/shell/hush_test/hush-vars/var_unbackslash.tests +++ b/shell/hush_test/hush-vars/var_unbackslash.tests @@ -1,13 +1,13 @@ # Test for correct handling of backslashes a=qwerty -b=-$a-\t-\\-\"-\--\z-\*-\?- +b=-$a-\t-\\-\"-\`-\--\z-\*-\?- echo b1=$b echo "b1=$b" -b="-$a-\t-\\-\"-\--\z-\*-\?-" +b="-$a-\t-\\-\"-\`-\--\z-\*-\?-" echo b2=$b echo "b2=$b" -b='-$a-\t-\\-\"-\--\z-\*-\?-' +b='-$a-\t-\\-\"-\`-\--\z-\*-\?-' echo b3=$b echo "b3=$b" |