bin/154983: head(1) returns EXIT_SUCCESS upon EOF

arundel at arundel at
Wed Feb 23 21:24:52 UTC 2011

Synopsis: head(1) returns EXIT_SUCCESS upon EOF

State-Changed-From-To: open->closed
State-Changed-By: arundel
State-Changed-When: Wed Feb 23 21:22:24 UTC 2011
I'm afraid your assumption is wrong. The POSIX specs [1] clearly state that

"When a file contains less than number lines, it shall be copied
to standard output in its entirety. This shall not be an error."


More information about the freebsd-bugs mailing list