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