From aea52e7b2d8a44e1c84575f5a83b36126a07ef6b Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 13 Jan 2018 19:28:19 +0100 Subject: shell: echo ${?:0} was fixed sometime ago, enable it in tests Signed-off-by: Denys Vlasenko --- shell/ash_test/ash-vars/param_expand_bash_substring.right | 1 + shell/ash_test/ash-vars/param_expand_bash_substring.tests | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'shell/ash_test/ash-vars') 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 9ad6dbc..687dd90 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 cce9f12..512da35 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}|" -- cgit v1.1