for3.0   [plain text]


# $FreeBSD$

r=x
f() { return 42; }
for i in x`f`; do
	r=$?
done
[ "$r" = 42 ]