1 # $FreeBSD: head/bin/sh/tests/execution/redir1.0 211408 2010-08-16 22:23:19Z jilles $
2 trap ': $((brokenpipe+=1))' PIPE
6 T=$(mktemp -d sh-test.XXXXXX)
11 read dummy >fifo2 <fifo1 &
14 } 3<fifo2 # Formerly, sh would keep fd 3 and a duplicate of it open.
16 if [ $brokenpipe -ne 0 ]; then
20 echo dummy >&4 2>/dev/null
21 if [ $brokenpipe -eq 1 ]; then