From a2633aa8197a866a7c00406f7eb7e9c9b4554166 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 1 Oct 2016 20:12:10 +0200 Subject: hush: add func6.tests Signed-off-by: Denys Vlasenko --- shell/hush_test/hush-misc/func6.tests | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 shell/hush_test/hush-misc/func6.tests (limited to 'shell/hush_test/hush-misc/func6.tests') diff --git a/shell/hush_test/hush-misc/func6.tests b/shell/hush_test/hush-misc/func6.tests new file mode 100755 index 000000000..029c3e85e --- /dev/null +++ b/shell/hush_test/hush-misc/func6.tests @@ -0,0 +1,11 @@ +f1() { + while return 2; do :; done +} +f1 +echo Two:$? + +f2() { + while :; do return 2; done +} +f2 +echo Two:$? -- cgit v1.2.3