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