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>
This commit is contained in:
Denys Vlasenko
2021-09-07 18:16:45 +02:00
parent d6c9cbc072
commit 64aa86b720
17 changed files with 49 additions and 41 deletions

View File

@@ -1 +1 @@
SHELL: line 1: : not found
SHELL: line 0: : not found

View File

@@ -1 +1 @@
SHELL: line 1: -: not found
SHELL: line 0: -: not found

View File

@@ -1,5 +1,5 @@
2 3 4
0: shift: line 1: Illegal number: -1
0: shift: line 0: Illegal number: -1
1 2 3 4
2 3 4
3 4

View File

@@ -1 +1 @@
./tickquote1.tests: line 1: syntax error: unterminated quoted string
./tickquote1.tests: line 0: syntax error: unterminated quoted string