shell: echo ${?:0} was fixed sometime ago, enable it in tests

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2018-01-13 19:28:19 +01:00
parent 9809a82b59
commit aea52e7b2d
4 changed files with 4 additions and 2 deletions

View File

@ -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=||

View File

@ -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}|"

View File

@ -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=||

View File

@ -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}|"