summary refs log tree commit diff
path: root/bin/cash/tests/builtins/break2.0
blob: 1ae7c91ea76ec29ac09ea57bb8f85d37320c8d1c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# $FreeBSD: releng/12.0/bin/sh/tests/builtins/break2.0 211467 2010-08-18 20:26:50Z jilles $

# It is not immediately obvious that this should work, and someone probably
# relies on it.

while :; do
	trap 'break' USR1
	kill -USR1 $$
	echo bad
	exit 1
done
echo good