xref: /freebsd/bin/sh/tests/builtins/for2.0 (revision 39ee7a7a6bdd1557b1c3532abf60d139798ac88b)
1# $FreeBSD$
2
3r=x
4f() { return 42; }
5f
6for i in x; do
7	r=$?
8done
9[ "$r" = 42 ]
10