xref: /freebsd/bin/sh/tests/builtins/break2.0 (revision e6bfd18d21b225af6a0ed67ceeaf1293b7b9eba5)
1# $FreeBSD$
2
3# It is not immediately obvious that this should work, and someone probably
4# relies on it.
5
6while :; do
7	trap 'break' USR1
8	kill -USR1 $$
9	echo bad
10	exit 1
11done
12echo good
13