From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jari Aalto Newsgroups: gmane.emacs.devel Subject: Re: compile.el::grep-program - should it use egrep instead of grep? Date: Mon, 12 Sep 2005 18:58:52 +0300 Organization: Private Message-ID: <1x3ujn0j.fsf@cante.net> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1126541364 27445 80.91.229.2 (12 Sep 2005 16:09:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Sep 2005 16:09:24 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 12 18:09:22 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EEqoy-0001xi-U0 for ged-emacs-devel@m.gmane.org; Mon, 12 Sep 2005 18:06:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EEqoy-0004qY-4G for ged-emacs-devel@m.gmane.org; Mon, 12 Sep 2005 12:06:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EEqof-0004pi-3N for emacs-devel@gnu.org; Mon, 12 Sep 2005 12:05:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EEqoY-0004nY-RP for emacs-devel@gnu.org; Mon, 12 Sep 2005 12:05:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EEqoY-0004lt-3U for emacs-devel@gnu.org; Mon, 12 Sep 2005 12:05:50 -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 1EEqlv-0002wM-SN for emacs-devel@gnu.org; Mon, 12 Sep 2005 12:03:08 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EEqiR-0007BU-8p for emacs-devel@gnu.org; Mon, 12 Sep 2005 17:59:31 +0200 Original-Received: from a81-197-0-130.elisa-laajakaista.fi ([81.197.0.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Sep 2005 17:59:31 +0200 Original-Received: from jari.aalto by a81-197-0-130.elisa-laajakaista.fi with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Sep 2005 17:59:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 37 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: a81-197-0-130.elisa-laajakaista.fi User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:fbT+im9qYhMMUeCYhkEusg+qakU= 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:42848 Archived-At: Andreas Schwab writes: | Jari Aalto writes: | | > Could you elaborate a little. The syntax of grep is not sufficient to | > make daily searches with M-x find-dired or M-x grep-find that happen | > frequently during searching system log files or looking into program | > and text document files. | | In GNU grep there is no expressive difference between BREs and EREs, only | the syntax differs. $ grep --version grep (GNU grep) 2.5.1 $ echo -e "this\nthat" | grep '(this|that)' I assume you meant that the OS's grep binary package installs wrappers around the grep(1) programs to call it with various arguments. However all the systems do define egrep(1) which use ERE syntaxes, so the appropriate call would always be even in GNU system: $ echo -e "this\nthat" | egrep '(this|that)' this that It's true that W32 can't use egrep shell script - But in the other hand it's not GNU system. And, 99% of the Emacs who need *nix features will install Cygwin, which can use the egrep(1) shell wrapper and other utilities like cvs, svn, diff, etc. Jari