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:
parent
a94eeb0b42
commit
32e183e63e
8
shell/ash_test/ash-vars/var_LINENO1.right
Normal file
8
shell/ash_test/ash-vars/var_LINENO1.right
Normal file
@ -0,0 +1,8 @@
|
||||
2:2
|
||||
3:3
|
||||
4:4
|
||||
5:5
|
||||
2:2
|
||||
3:3
|
||||
4:4
|
||||
5:5
|
6
shell/ash_test/ash-vars/var_LINENO1.tests
Executable file
6
shell/ash_test/ash-vars/var_LINENO1.tests
Executable 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
|
@ -1,4 +1,4 @@
|
||||
env | grep LINENO
|
||||
env | grep ^LINENO
|
||||
echo 2:$LINENO
|
||||
echo 3:$LINENO >&2 \
|
||||
| { sleep 0.1; echo 4:$LINENO; }
|
||||
|
Loading…
Reference in New Issue
Block a user