summary refs log tree commit diff
path: root/bin/cash/tests/builtins/for2.0
blob: ab10d9ae533c4b3e35d35434250492de51cd1466 (plain) (blame)
1
2
3
4
5
6
7
8
9
# $FreeBSD: releng/12.0/bin/sh/tests/builtins/for2.0 230463 2012-01-22 14:00:33Z jilles $

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