diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-09-07 18:16:45 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-09-07 18:16:45 +0200 |
commit | 64aa86b720641cb50be9636e6c20d4dbbea6fed0 (patch) | |
tree | 831e13eec7b361f1f9b37a4359594969eee0050c /shell/ash_test/ash-vars/var_LINENO3.tests | |
parent | d6c9cbc0727cc3875672ae280ec129514a9d8594 (diff) |
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>
Diffstat (limited to 'shell/ash_test/ash-vars/var_LINENO3.tests')
-rwxr-xr-x | shell/ash_test/ash-vars/var_LINENO3.tests | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/ash_test/ash-vars/var_LINENO3.tests b/shell/ash_test/ash-vars/var_LINENO3.tests new file mode 100755 index 000000000..4502edfe0 --- /dev/null +++ b/shell/ash_test/ash-vars/var_LINENO3.tests @@ -0,0 +1,2 @@ +$THIS_SH -c 'echo "LINENO starts from $LINENO in -c" +echo "and increments on next line: $LINENO"' |