xref: /freebsd/bin/sh/tests/builtins/trap3.0 (revision 2e3507c25e42292b45a5482e116d278f5515d04d)
1
2{
3	trap '' garbage && exit 3
4	trap - garbage && exit 3
5	trap true garbage && exit 3
6	trap '' 99999 && exit 3
7	trap - 99999 && exit 3
8	trap true 99999 && exit 3
9} 2>/dev/null
10exit 0
11