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