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