Re:Getting the ^D
by jwilk on Monday April 10, 2023 @03:15AM
(#35509925)
> 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:
It's not a good example, because bash disables the canonical mode. When you type ^D this happens:
(And then bash ignores the read EOT character.)