When I use a pipe and the receiving end dies, I understand that the
sending end is terminated. But when I use stdbuf on the sender, a dying
receiving does not terminate the pipe. Example:
$ { i=0; while true; do echo "send $i" >&2; echo $((i++)); sleep 1;
done; } | { while read s; [[ $s != 5 ]]; do echo "receive $s"; done; }