xref: /freebsd/bin/sh/tests/builtins/trap15.0 (revision 4543ef516683042d46f3bd3bb8a4f3f746e00499)
1
2(${SH} -c 'term(){ exit 5;}; trap term TERM; kill -TERM $$') &
3wait >/dev/null 2>&1 $!
4[ $? -eq 5 ]
5