head behaviour
Rob Warnock
rpw3 at rpw3.org
Mon Jun 7 03:37:49 UTC 2010
Bakul Shah <bakul at bitblocks.com> wrote:
+----------
| [cc'ed Rob in case he wishes to chime in]
+---------
No, I think you covered most of it quite well [including the bit
about "grep -m" not working properly in the case of pipes, sockets,
special files, etc.], thanks.
Yes, I know that "grep(1)" only promises that "-m" works "If the input
is standard input from a regular file", but IMHO we would all benefit
from having an option for "grep" (and "head") that would force using
"read(fd,&c,1)" when the user really, really wanted it (them) to.
-Rob
-----
Rob Warnock <rpw3 at rpw3.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607
More information about the freebsd-hackers
mailing list