But I'm not sure I should post
the answer I've drafted because I'm pretty sure I'm missing something important. Specifically, when I run
cat | read -rdz
so that it stops reading at the
z
character instead of a newline (I could've used any character, it didn't have to be
z
), and I type a
z
and then a newline--or type a
z
and then manually flush the buffer with Ctrl+D)--
cat
is still running.