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