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:
2
shell/hush_test/hush-vars/var_LINENO3.right
Normal file
2
shell/hush_test/hush-vars/var_LINENO3.right
Normal file
@ -0,0 +1,2 @@
|
||||
LINENO starts from 0 in -c
|
||||
and increments on next line: 1
|
2
shell/hush_test/hush-vars/var_LINENO3.tests
Executable file
2
shell/hush_test/hush-vars/var_LINENO3.tests
Executable file
@ -0,0 +1,2 @@
|
||||
$THIS_SH -c 'echo "LINENO starts from $LINENO in -c"
|
||||
echo "and increments on next line: $LINENO"'
|
Reference in New Issue
Block a user