Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jun 2010 20:20:47 -0700
From:      Rob Warnock <rpw3@rpw3.org>
To:        Bakul Shah <bakul@bitblocks.com>
Cc:        Dag-Erling Sm??rgrav <des@des.no>, Doug Barton <dougb@FreeBSD.org>, freebsd-hackers@freebsd.org
Subject:   Re: head behaviour
Message-ID:  <20100607032047.GA63703@a64.rpw3.org>
In-Reply-To: <20100607000607.97C6F5B5A@mail.bitblocks.com>
References:  <20100605201242.C79345B52@mail.bitblocks.com> <4C0AB448.2040104@FreeBSD.org> <86r5kk6xju.fsf@ds4.des.no> <4C0C1A0B.4090409@FreeBSD.org> <86d3w3yflj.fsf@ds4.des.no> <20100607000607.97C6F5B5A@mail.bitblocks.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Bakul Shah <bakul@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@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>;
San Mateo, CA 94403		(650)572-2607




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