From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: grep command adds "NUL" Date: Tue, 03 Dec 2002 08:40:13 +0100 Organization: University of Dortmund, Germany Sender: help-gnu-emacs-admin@gnu.org Message-ID: <84smxf5z4y.fsf@lucy.cs.uni-dortmund.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1038904234 25882 80.91.224.249 (3 Dec 2002 08:30:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 3 Dec 2002 08:30:34 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18J8Rp-0006jI-00 for ; Tue, 03 Dec 2002 09:30:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18J8SR-00051Q-00; Tue, 03 Dec 2002 03:31:07 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!skynet.be!skynet.be!fu-berlin.de!uni-berlin.de!lucy.informatik.uni-duisburg.DE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 11 Original-NNTP-Posting-Host: lucy.informatik.uni-duisburg.de (134.91.35.216) Original-X-Trace: fu-berlin.de 1038904034 28727896 134.91.35.216 (16 [73968]) User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:PJME6yvfuh0qZfob9owPfK/C1XE= Original-Xref: shelby.stanford.edu gnu.emacs.help:107680 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:4229 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4229 "Leo" writes: > looking in the elisp source tells me, that emacs wants to add a null-device. > why that? If you call grep with just one file name, then it will omit the file name in the output. But for C-x ` you need to have the filename. So the trick is to call grep with /dev/null as one of the file names. -- ~/.signature is: umop ap!sdn (Frank Nobis)