summary refs log tree commit diff
path: root/bin/cash/tests/builtins/trap12.0
blob: 134391f7f8ebe60391b9461a103800ee5fed04f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# $FreeBSD: releng/12.0/bin/sh/tests/builtins/trap12.0 247720 2013-03-03 17:33:59Z jilles $

f() {
	trap 'return 42' USR1
	kill -USR1 $$
	return 3
}
f
r=$?
[ "$r" = 42 ]