busybox/shell/ash_test/ash-vars/param_expand_indicate_error.right
Denys Vlasenko 645c697372 hush: treat ${#?} as "length of $?"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2017-07-25 15:18:57 +02:00

44 lines
652 B
Plaintext

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