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

@ -0,0 +1,2 @@
LINENO starts from 0 in -c
and increments on next line: 1

View File

@ -0,0 +1,2 @@
$THIS_SH -c 'echo "LINENO starts from $LINENO in -c"
echo "and increments on next line: $LINENO"'