diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-01-13 19:28:19 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-01-13 19:28:19 +0100 |
commit | aea52e7b2d8a44e1c84575f5a83b36126a07ef6b (patch) | |
tree | f37405e37e74bfabaf3b6236415d29d0aa6f6a53 | |
parent | 9809a82b5983ac3184906fff2df48765dab372c8 (diff) | |
download | busybox-aea52e7b2d8a44e1c84575f5a83b36126a07ef6b.tar.gz |
shell: echo ${?:0} was fixed sometime ago, enable it in tests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
4 files changed, 4 insertions, 2 deletions
diff --git a/shell/ash_test/ash-vars/param_expand_bash_substring.right b/shell/ash_test/ash-vars/param_expand_bash_substring.right index 9ad6dbcad..687dd9002 100644 --- a/shell/ash_test/ash-vars/param_expand_bash_substring.right +++ b/shell/ash_test/ash-vars/param_expand_bash_substring.right @@ -3,6 +3,7 @@ SHELL: line 1: syntax error: bad substitution SHELL: line 1: syntax error: bad substitution SHELL: line 1: syntax error: bad substitution SHELL: line 1: syntax error: missing '}' +0 1 =|| 1:1 =|| 1:1:2=|| diff --git a/shell/ash_test/ash-vars/param_expand_bash_substring.tests b/shell/ash_test/ash-vars/param_expand_bash_substring.tests index cce9f123e..512da351b 100755 --- a/shell/ash_test/ash-vars/param_expand_bash_substring.tests +++ b/shell/ash_test/ash-vars/param_expand_bash_substring.tests @@ -11,7 +11,7 @@ export var=0123456789 "$THIS_SH" -c 'echo ${var:}' SHELL # then some funky ones -# UNFIXED BUG: this should work: "$THIS_SH" -c 'echo ${?:0}' +"$THIS_SH" -c 'echo ${?:0}' SHELL # now some valid ones set --; echo "1 =|${1}|" diff --git a/shell/hush_test/hush-vars/param_expand_bash_substring.right b/shell/hush_test/hush-vars/param_expand_bash_substring.right index 2f4c51d06..a3cb549f7 100644 --- a/shell/hush_test/hush-vars/param_expand_bash_substring.right +++ b/shell/hush_test/hush-vars/param_expand_bash_substring.right @@ -3,6 +3,7 @@ hush: syntax error: unterminated ${name} hush: syntax error: unterminated ${name} hush: syntax error: unterminated ${name} 0123456789 +0 1 =|| 1:1 =|| 1:1:2=|| diff --git a/shell/hush_test/hush-vars/param_expand_bash_substring.tests b/shell/hush_test/hush-vars/param_expand_bash_substring.tests index cce9f123e..512da351b 100755 --- a/shell/hush_test/hush-vars/param_expand_bash_substring.tests +++ b/shell/hush_test/hush-vars/param_expand_bash_substring.tests @@ -11,7 +11,7 @@ export var=0123456789 "$THIS_SH" -c 'echo ${var:}' SHELL # then some funky ones -# UNFIXED BUG: this should work: "$THIS_SH" -c 'echo ${?:0}' +"$THIS_SH" -c 'echo ${?:0}' SHELL # now some valid ones set --; echo "1 =|${1}|" |