busybox/shell/ash_test/ash-vars/param_expand_indicate_error.right
Denys Vlasenko 64aa86b720 ash: LINENO starts from 0 in -c SCRIPT mode
The var_LINENO3.tests fails for hush: it does start from 0, but does not increment.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2021-09-07 18:16:45 +02:00

44 lines
652 B
Plaintext

SHELL: line 0: syntax error: bad substitution
1
0
====
_
SHELL: line 0: 1: parameter not set
SHELL: line 0: 1: parameter not set or null
SHELL: line 0: 1: message1
SHELL: line 0: 1: message1
SHELL: line 0: 1: unset!
SHELL: line 0: 1: null or unset!
====
_aaaa
_aaaa
_aaaa
_aaaa
_aaaa
_aaaa
_aaaa
====
_
SHELL: line 0: f: parameter not set
SHELL: line 0: f: parameter not set or null
SHELL: line 0: f: message3
SHELL: line 0: f: message3
SHELL: line 0: f: unset!
SHELL: line 0: f: null or unset!
====
_
_
SHELL: line 0: f: parameter not set or null
_
SHELL: line 0: f: message4
_
SHELL: line 0: f: null or unset!
====
_fff
_fff
_fff
_fff
_fff
_fff
_fff