On Sun, Oct 24, 2021 at 12:42 PM Koichi Murase <myoga.mur...@gmail.com> wrote: > and I think this is the behavior implied by the POSIX standard:
The spec also says: > STDIN > The standard input shall be a text file. A text file is either empty, or ends with a newline. The behavior of `read' is undefined when the input is not a text file.