Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Feb 2011 21:24:51 GMT
From:      arundel@FreeBSD.org
To:        svartman95@gmail.com, arundel@FreeBSD.org, freebsd-bugs@FreeBSD.org
Subject:   Re: bin/154983: head(1) returns EXIT_SUCCESS upon EOF
Message-ID:  <201102232124.p1NLOpIQ099454@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102232124.p1NLOpIQ099454>