diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-09-09 14:04:57 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-09-09 14:04:57 +0200 |
commit | 101a4e3e2170e5ffa2bd2b06d7a71088a0ab8958 (patch) | |
tree | 308531a1fe9fcd7e6a5503e97a99465c9b8d5b1c /shell/hush_test | |
parent | 5b6210cf492dba4474d83a138c95b1267777826b (diff) | |
download | busybox-w32-101a4e3e2170e5ffa2bd2b06d7a71088a0ab8958.tar.gz busybox-w32-101a4e3e2170e5ffa2bd2b06d7a71088a0ab8958.tar.bz2 busybox-w32-101a4e3e2170e5ffa2bd2b06d7a71088a0ab8958.zip |
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')
-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 20c2ddf55..8bc834711 100644 --- a/shell/hush_test/hush-vars/var_unbackslash.right +++ b/shell/hush_test/hush-vars/var_unbackslash.right | |||
@@ -1,11 +1,11 @@ | |||
1 | b1=-qwerty-t-\-"---z-*-?- | 1 | b1=-qwerty-t-\-"-`---z-*-?- |
2 | b1=-qwerty-t-\-"---z-*-?- | 2 | b1=-qwerty-t-\-"-`---z-*-?- |
3 | b2=-qwerty-\t-\-"-\--\z-\*-\?- | 3 | b2=-qwerty-\t-\-"-`-\--\z-\*-\?- |
4 | b2=-qwerty-\t-\-"-\--\z-\*-\?- | 4 | b2=-qwerty-\t-\-"-`-\--\z-\*-\?- |
5 | b3=-$a-\t-\\-\"-\--\z-\*-\?- | 5 | b3=-$a-\t-\\-\"-\`-\--\z-\*-\?- |
6 | b3=-$a-\t-\\-\"-\--\z-\*-\?- | 6 | b3=-$a-\t-\\-\"-\`-\--\z-\*-\?- |
7 | c=-$a-\t-\\-\"-\--\z-\*-\?- | 7 | c=-$a-\t-\\-\"-\`-\--\z-\*-\?- |
8 | c=-$a-\t-\\-\"-\--\z-\*-\?- | 8 | c=-$a-\t-\\-\"-\`-\--\z-\*-\?- |
9 | c=-$a-\t-\\-\"-\--\z-\*-\?- | 9 | c=-$a-\t-\\-\"-\`-\--\z-\*-\?- |
10 | c=-$a-\t-\\-\"-\--\z-\*-\?- | 10 | c=-$a-\t-\\-\"-\`-\--\z-\*-\?- |
11 | Done: 0 | 11 | Done: 0 |
diff --git a/shell/hush_test/hush-vars/var_unbackslash.tests b/shell/hush_test/hush-vars/var_unbackslash.tests index 3c35d7df5..bb52af3d0 100755 --- a/shell/hush_test/hush-vars/var_unbackslash.tests +++ b/shell/hush_test/hush-vars/var_unbackslash.tests | |||
@@ -1,13 +1,13 @@ | |||
1 | # Test for correct handling of backslashes | 1 | # Test for correct handling of backslashes |
2 | a=qwerty | 2 | a=qwerty |
3 | 3 | ||
4 | b=-$a-\t-\\-\"-\--\z-\*-\?- | 4 | b=-$a-\t-\\-\"-\`-\--\z-\*-\?- |
5 | echo b1=$b | 5 | echo b1=$b |
6 | echo "b1=$b" | 6 | echo "b1=$b" |
7 | b="-$a-\t-\\-\"-\--\z-\*-\?-" | 7 | b="-$a-\t-\\-\"-\`-\--\z-\*-\?-" |
8 | echo b2=$b | 8 | echo b2=$b |
9 | echo "b2=$b" | 9 | echo "b2=$b" |
10 | b='-$a-\t-\\-\"-\--\z-\*-\?-' | 10 | b='-$a-\t-\\-\"-\`-\--\z-\*-\?-' |
11 | echo b3=$b | 11 | echo b3=$b |
12 | echo "b3=$b" | 12 | echo "b3=$b" |
13 | 13 | ||