xref: /freebsd/bin/sh/tests/builtins/break1.0 (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1
2if [ "$1" != nested ]; then
3	while :; do
4		set -- nested
5		. "$0"
6		echo bad2
7		exit 2
8	done
9	exit 0
10fi
11# To trigger the bug, the following commands must be at the top level,
12# with newlines in between.
13break
14echo bad1
15exit 1
16