@ByteCommander Have you figured out what's going on? I'm thinking of posting on
Unix & Linux about
the issues that are blocking me from being confident in my answer to your
cat | read
question. Based on my reasoning,
cat | read -rdz
should terminate after a
z
+ newline-or-flush. But it doesn't. I've tried in
bash
,
ksh93
, and
zsh
in case the shell mattered. (I can't try shells like
dash
as they don't support
read -d
.)