bin/154983: head(1) returns EXIT_SUCCESS upon EOF
arundel at FreeBSD.org
arundel at FreeBSD.org
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
State-Changed-Why:
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."
[1] http://pubs.opengroup.org/onlinepubs/9699919799/
http://www.freebsd.org/cgi/query-pr.cgi?pr=154983
More information about the freebsd-bugs
mailing list