diff options
Diffstat (limited to '')
-rw-r--r-- | bin/1sh/tests/builtins/for2.0 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/1sh/tests/builtins/for2.0 b/bin/1sh/tests/builtins/for2.0 new file mode 100644 index 00000000..b4c59710 --- /dev/null +++ b/bin/1sh/tests/builtins/for2.0 @@ -0,0 +1,9 @@ +# $FreeBSD: releng/12.1/bin/sh/tests/builtins/for2.0 230463 2012-01-22 14:00:33Z jilles $ + +r=x +f() { return 42; } +f +for i in x; do + r=$? +done +[ "$r" = 42 ] |