shells: fix var_LINENO1.tests false positive, add it to ash tests too

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2018-03-31 20:31:13 +02:00
parent a94eeb0b42
commit 32e183e63e
3 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,8 @@
2:2
3:3
4:4
5:5
2:2
3:3
4:4
5:5

View File

@ -0,0 +1,6 @@
env | grep ^LINENO
echo 2:$LINENO
echo 3:$LINENO >&2 \
| { sleep 0.1; echo 4:$LINENO; }
echo 5:$LINENO
test "$1" || . ./var_LINENO1.tests norepeat

View File

@ -1,4 +1,4 @@
env | grep LINENO
env | grep ^LINENO
echo 2:$LINENO
echo 3:$LINENO >&2 \
| { sleep 0.1; echo 4:$LINENO; }