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