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