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