trap6.0 revision 217472
1217472Sjilles# $FreeBSD: head/tools/regression/bin/sh/builtins/trap6.0 217472 2011-01-16 13:56:41Z jilles $ 2217472Sjilles 3217472Sjillesv=$( 4217472Sjilles ${SH} -c 'trap "echo ok; exit" USR1; kill -USR1 $$' & 5217472Sjilles # Suppress possible message about exit on signal 6217472Sjilles wait $! >/dev/null 2>&1 7217472Sjilles) 8217472Sjillesr=$(kill -l $?) 9217472Sjilles[ "$v" = "ok" ] && { [ "$r" = "USR1" ] || [ "$r" = "usr1" ]; } 10