summary refs log tree commit diff
path: root/bin/1sh/tests/builtins/for3.0
diff options
context:
space:
mode:
Diffstat (limited to 'bin/1sh/tests/builtins/for3.0')
-rw-r--r--bin/1sh/tests/builtins/for3.08
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/1sh/tests/builtins/for3.0 b/bin/1sh/tests/builtins/for3.0
new file mode 100644
index 00000000..0e07a2a2
--- /dev/null
+++ b/bin/1sh/tests/builtins/for3.0
@@ -0,0 +1,8 @@
+# $FreeBSD: releng/12.1/bin/sh/tests/builtins/for3.0 230463 2012-01-22 14:00:33Z jilles $
+
+r=x
+f() { return 42; }
+for i in x`f`; do
+	r=$?
+done
+[ "$r" = 42 ]