From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Karl Chen Newsgroups: gmane.emacs.devel Subject: grep /dev/null Date: Wed, 02 Feb 2005 21:20:13 -0800 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1107409524 12495 80.91.229.2 (3 Feb 2005 05:45:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 3 Feb 2005 05:45:24 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 03 06:45:24 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1CwZnq-0000cZ-47 for ged-emacs-devel@m.gmane.org; Thu, 03 Feb 2005 06:45:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cwa16-0002xL-E0 for ged-emacs-devel@m.gmane.org; Thu, 03 Feb 2005 00:59:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CwZzp-00021Y-R8 for emacs-devel@gnu.org; Thu, 03 Feb 2005 00:57:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CwZzh-0001x3-8b for emacs-devel@gnu.org; Thu, 03 Feb 2005 00:57:36 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CwZze-0001sv-5N for emacs-devel@gnu.org; Thu, 03 Feb 2005 00:57:30 -0500 Original-Received: from [169.229.60.163] (helo=relay0.EECS.Berkeley.EDU) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CwZPb-0001zq-Bs for emacs-devel@gnu.org; Thu, 03 Feb 2005 00:20:15 -0500 Original-Received: from quack.quarl.org (quack.CS.Berkeley.EDU [128.32.132.234]) by relay0.EECS.Berkeley.EDU (8.13.3/8.12.10) with ESMTP id j135KDFA028106; Wed, 2 Feb 2005 21:20:14 -0800 (PST) Original-Received: by quack.quarl.org (Postfix, from userid 1000) id AE115700DF; Wed, 2 Feb 2005 21:20:13 -0800 (PST) Original-To: Emacs Developement List X-Quack-Archive: 1 X-Payment: hashcash 1.2 1:20:050203:emacs-devel@gnu.org::qjqWEX6Gg0cdtkDu:00000000000000000000000000000000000000000017Ew X-Hashcash: 1:20:050203:emacs-devel@gnu.org::qjqWEX6Gg0cdtkDu:00000000000000000000000000000000000000000017Ew 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:32785 I often when using `grep' type a regexp but forget to type a file glob. This leads to slightly annoying behavior: it sits waiting for input on stdin that never arrives. Once you realize that it's not searching you have to kill it manually. I think it would be useful if such grep invocations terminate immediately. One easy way would be to always append " /dev/null (i.e. grep-use-null-device) or "