shell: echo ${?:0} was fixed sometime ago, enable it in tests
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 13 Jan 2018 18:28:19 +0000 (19:28 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 13 Jan 2018 18:28:19 +0000 (19:28 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash_test/ash-vars/param_expand_bash_substring.right
shell/ash_test/ash-vars/param_expand_bash_substring.tests
shell/hush_test/hush-vars/param_expand_bash_substring.right
shell/hush_test/hush-vars/param_expand_bash_substring.tests

index 9ad6dbcad61d2d315fe94f3d60b8ed577858b6a7..687dd900299c74ccc081ba90ee068c72834ad195 100644 (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=||
index cce9f123e67645578fa5373db34e06690d18258a..512da351ba8e72be4df2405a8e8229685fe4e90c 100755 (executable)
@@ -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}|"
index 2f4c51d06217b7de0437fa583a6ced69ad63f4e9..a3cb549f7bcb28f366ce4ec1957810b578302f13 100644 (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=||
index cce9f123e67645578fa5373db34e06690d18258a..512da351ba8e72be4df2405a8e8229685fe4e90c 100755 (executable)
@@ -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}|"