From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emilio Lopes Newsgroups: gmane.emacs.devel Subject: Re: grep-use-null-device Date: Tue, 16 Aug 2005 18:29:49 +0200 Organization: private Message-ID: References: <85vf26dygx.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1124210290 30050 80.91.229.2 (16 Aug 2005 16:38:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Aug 2005 16:38:10 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 16 18:38:08 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E54QX-0006X1-CL for ged-emacs-devel@m.gmane.org; Tue, 16 Aug 2005 18:36:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E54Tx-00015o-LL for ged-emacs-devel@m.gmane.org; Tue, 16 Aug 2005 12:40:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E54SA-0000Xl-Qd for emacs-devel@gnu.org; Tue, 16 Aug 2005 12:38:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E54S8-0000Vm-Nx for emacs-devel@gnu.org; Tue, 16 Aug 2005 12:38:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E54S8-0000Uw-6D for emacs-devel@gnu.org; Tue, 16 Aug 2005 12:38:16 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1E54bn-0005aS-5Y for emacs-devel@gnu.org; Tue, 16 Aug 2005 12:48:15 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1E54KH-00050R-RN for emacs-devel@gnu.org; Tue, 16 Aug 2005 18:30:09 +0200 Original-Received: from p62.246.42.117.tisdip.tiscali.de ([62.246.42.117]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Aug 2005 18:30:09 +0200 Original-Received: from eclig by p62.246.42.117.tisdip.tiscali.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Aug 2005 18:30:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 19 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p62.246.42.117.tisdip.tiscali.de User-Agent: Emacs Gnus Cancel-Lock: sha1:9+PNxf9sC/aMnXBFQam2dzCmvcc= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:42135 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:42135 David Kastrup writes: > I think what rather should be done is that standard input on the > grep process gets closed. That requires no special options, and it > will lead to a sensible result without obscure extra options. This seems a rather clean solution. Karl Chen pointed out that Kevin Rodgers already posted such a patch to this list. Here is the URL: http://article.gmane.org/gmane.emacs.devel/33146 I'll try his patch out. > grep-use-null-device is just for getting file names on matches, not > for dealing with bad commands. That was my confusion. It saved me a lot of times as I forgot to provide grep with filenames, so that for me it was its obvious purpose. A nice hack indeed.