]> git.saurik.com Git - apple/shell_cmds.git/blame - sh/tests/builtins/wait5.0
shell_cmds-216.60.1.tar.gz
[apple/shell_cmds.git] / sh / tests / builtins / wait5.0
CommitLineData
deb63bfb 1# $FreeBSD: head/bin/sh/tests/builtins/wait5.0 247206 2013-02-23 22:50:57Z jilles $
71aad674
A
2
3T=`mktemp -d ${TMPDIR:-/tmp}/sh-test.XXXXXX`
4trap 'rm -rf $T' 0
5cd $T || exit 3
6mkfifo fifo1
7trapped=
8trap trapped=1 QUIT
9{ kill -QUIT $$; sleep 1; exit 4; } >fifo1 &
10wait <fifo1
11r=$?
12[ "$r" -gt 128 ] && [ -n "$trapped" ]