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