3 trap 'echo Broken pipe -- test failed' PIPE
7 T=$(mktemp -d sh-test.XXXXXX)
10 mkfifo input output error
11 HISTFILE=/dev/null ${SH} +m -i <input >output 2>error &
15 # Read error message, shell will read new input now
17 # Execute bad command again
19 # Verify that the shell is still running
20 echo 'echo continued' >&3 || rc=3
21 echo 'exit' >&3 || rc=3
22 read line <&4 && [ "$line" = continued ] && : ${rc:=0}
23 } 3>input 4<output 5<error