hush: add func6.tests

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2016-10-01 20:12:10 +02:00
parent 35ec818fa2
commit a2633aa819
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,2 @@
Two:2
Two:2

View File

@ -0,0 +1,11 @@
f1() {
while return 2; do :; done
}
f1
echo Two:$?
f2() {
while :; do return 2; done
}
f2
echo Two:$?