summary refs log tree commit diff
path: root/bin/cash/tests/builtins/trap15.0
blob: 5bb7aeb2534e2faec5e38301868e151e936a9fcd (plain) (blame)
1
2
3
4
5
# $FreeBSD: releng/12.0/bin/sh/tests/builtins/trap15.0 281718 2015-04-18 23:49:57Z bdrewery $

(${SH} -c 'term(){ exit 5;}; trap term TERM; kill -TERM $$') &
wait >/dev/null 2>&1 $!
[ $? -eq 5 ]