aboutsummaryrefslogtreecommitdiffstats
path: root/shell_cmds/sh/tests/builtins/for3.0
diff options
context:
space:
mode:
Diffstat (limited to 'shell_cmds/sh/tests/builtins/for3.0')
-rw-r--r--shell_cmds/sh/tests/builtins/for3.08
1 files changed, 8 insertions, 0 deletions
diff --git a/shell_cmds/sh/tests/builtins/for3.0 b/shell_cmds/sh/tests/builtins/for3.0
new file mode 100644
index 0000000..a345caa
--- /dev/null
+++ b/shell_cmds/sh/tests/builtins/for3.0
@@ -0,0 +1,8 @@
+# $FreeBSD: head/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 ]