]> git.saurik.com Git - apple/shell_cmds.git/blob - sh/tests/builtins/trap6.0
shell_cmds-216.60.1.tar.gz
[apple/shell_cmds.git] / sh / tests / builtins / trap6.0
1 # $FreeBSD: head/bin/sh/tests/builtins/trap6.0 217472 2011-01-16 13:56:41Z jilles $
2
3 v=$(
4 ${SH} -c 'trap "echo ok; exit" USR1; kill -USR1 $$' &
5 # Suppress possible message about exit on signal
6 wait $! >/dev/null 2>&1
7 )
8 r=$(kill -l $?)
9 [ "$v" = "ok" ] && { [ "$r" = "USR1" ] || [ "$r" = "usr1" ]; }