aboutsummaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-vars/param_expand_indicate_error.right
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-07-25 15:18:57 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-07-25 15:18:57 +0200
commit645c697372b714f1293a37a185aa62965f600479 (patch)
tree5033362b96737f83526b776818bf4c9a4ef8a9ef /shell/ash_test/ash-vars/param_expand_indicate_error.right
parent64925384c9cf5e0d986e183577da286bb3207ce7 (diff)
downloadbusybox-645c697372b714f1293a37a185aa62965f600479.tar.gz
hush: treat ${#?} as "length of $?"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-vars/param_expand_indicate_error.right')
-rw-r--r--shell/ash_test/ash-vars/param_expand_indicate_error.right43
1 files changed, 43 insertions, 0 deletions
diff --git a/shell/ash_test/ash-vars/param_expand_indicate_error.right b/shell/ash_test/ash-vars/param_expand_indicate_error.right
new file mode 100644
index 000000000..33afacee0
--- /dev/null
+++ b/shell/ash_test/ash-vars/param_expand_indicate_error.right
@@ -0,0 +1,43 @@
+SHELL: line 1: syntax error: bad substitution
+1
+0
+====
+_
+SHELL: line 1: 1: parameter not set
+SHELL: line 1: 1: parameter not set or null
+SHELL: line 1: 1: message1
+SHELL: line 1: 1: message1
+SHELL: line 1: 1: unset!
+SHELL: line 1: 1: null or unset!
+====
+_aaaa
+_aaaa
+_aaaa
+_aaaa
+_aaaa
+_aaaa
+_aaaa
+====
+_
+SHELL: line 1: f: parameter not set
+SHELL: line 1: f: parameter not set or null
+SHELL: line 1: f: message3
+SHELL: line 1: f: message3
+SHELL: line 1: f: unset!
+SHELL: line 1: f: null or unset!
+====
+_
+_
+SHELL: line 1: f: parameter not set or null
+_
+SHELL: line 1: f: message4
+_
+SHELL: line 1: f: null or unset!
+====
+_fff
+_fff
+_fff
+_fff
+_fff
+_fff
+_fff