> the process has to be programmed to stop if read returns no bytes. A process could carry on regardless, or not read stdin at all. In Bash, if you type half a command and press ^D repeatedly, nothing happens.
It's not a good example, because bash disables the canonical mode. When you type ^D this happens: