- Because that’s the way POSIX defines it.
- Because some tools expect it or «misbehave» without it. For example, wc -l will not count a final «line» if it doesn’t >end with a newline.
- Because a file (or stream) of zero lines can be distinguished from a file of one empty line.
Почему нужно указывать EOF
Published inHOWTO
Be First to Comment