From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 7 03:37:49 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 890601065675; Mon, 7 Jun 2010 03:37:49 +0000 (UTC) (envelope-from rpw3@rpw3.org) Received: from a64.rpw3.org (fast.rpw3.org [66.93.131.53]) by mx1.freebsd.org (Postfix) with ESMTP id 706958FC1D; Mon, 7 Jun 2010 03:37:49 +0000 (UTC) Received: by a64.rpw3.org (Postfix, from userid 101) id BC49A39AF1; Sun, 6 Jun 2010 20:20:47 -0700 (PDT) Date: Sun, 6 Jun 2010 20:20:47 -0700 From: Rob Warnock To: Bakul Shah Message-ID: <20100607032047.GA63703@a64.rpw3.org> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100607000607.97C6F5B5A@mail.bitblocks.com> User-Agent: Mutt/1.4.2.3i X-Mailman-Approved-At: Mon, 07 Jun 2010 03:57:16 +0000 Cc: Dag-Erling Sm??rgrav , Doug Barton , freebsd-hackers@freebsd.org Subject: Re: head behaviour X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2010 03:37:49 -0000 Bakul Shah 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 627 26th Avenue San Mateo, CA 94403 (650)572-2607