summary refs log tree commit diff
path: root/bin/cash/tests/builtins/break3.0
blob: 8a239be602cfce7b9817259d8649455c9d395bd0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# $FreeBSD: releng/12.0/bin/sh/tests/builtins/break3.0 211612 2010-08-22 11:07:46Z jilles $

# 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
a href='/torus/commit/chroot.sh?h=backport&id=2ee6b51c0586407d6d32f6bdd45dced1fb17a295&follow=1'>Add chroot.shJune McEnroe 2017-07-30Add ` commandJune McEnroe 2017-07-30Add sshd_configJune McEnroe 2017-07-30Add termcap patchJune McEnroe