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