xref: /freebsd/bin/sh/tests/builtins/trap12.0 (revision 5370c80e0e6aa7aaaf53e62ec4010cee92440a8f)
1# $FreeBSD$
2
3f() {
4	trap 'return 42' USR1
5	kill -USR1 $$
6	return 3
7}
8f
9r=$?
10[ "$r" = 42 ]
11