aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/tests/builtins/break3.0
blob: 10a5ca88edff5df310a9c7b0cf4c4816435c12ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# $FreeBSD$

# We accept this and people might rely on it.
# However, various other shells do not accept it.

f() {
	break
	echo bad1
}

while :; do
	f
	echo bad2
	exit 2
done