Deleted Added
full compact
break3.0 (259210) break3.0 (262951)
1# $FreeBSD: head/bin/sh/tests/builtins/break3.0 211612 2010-08-22 11:07:46Z jilles $
1# $FreeBSD: stable/10/bin/sh/tests/builtins/break3.0 211612 2010-08-22 11:07:46Z jilles $
2
3# We accept this and people might rely on it.
4# However, various other shells do not accept it.
5
6f() {
7 break
8 echo bad1
9}
10
11while :; do
12 f
13 echo bad2
14 exit 2
15done
2
3# We accept this and people might rely on it.
4# However, various other shells do not accept it.
5
6f() {
7 break
8 echo bad1
9}
10
11while :; do
12 f
13 echo bad2
14 exit 2
15done