1230463Sjilles# $FreeBSD: head/tools/regression/bin/sh/builtins/for3.0 230463 2012-01-22 14:00:33Z jilles $ 2230463Sjilles 3230463Sjillesr=x 4230463Sjillesf() { return 42; } 5230463Sjillesfor i in x`f`; do 6230463Sjilles r=$? 7230463Sjillesdone 8230463Sjilles[ "$r" = 42 ] 9