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

# 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