From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Shenli Zhu Newsgroups: gmane.emacs.help Subject: Re: Problem with grep in Emacs 23.2 Date: Tue, 7 Sep 2010 08:22:40 +0800 Message-ID: References: <2491E099-746A-4074-B521-E912570D8B61@Web.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001636d34d1c1bf54f048fa06501 X-Trace: dough.gmane.org 1283818992 15490 80.91.229.12 (7 Sep 2010 00:23:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Sep 2010 00:23:12 +0000 (UTC) Cc: help-gnu-emacs To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 07 02:23:11 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oslxu-00065Z-BI for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Sep 2010 02:23:10 +0200 Original-Received: from localhost ([127.0.0.1]:40011 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oslxt-0000i6-FC for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Sep 2010 20:23:09 -0400 Original-Received: from [140.186.70.92] (port=52075 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OslxT-0000i1-9w for help-gnu-emacs@gnu.org; Mon, 06 Sep 2010 20:22:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OslxR-0004zp-Dv for help-gnu-emacs@gnu.org; Mon, 06 Sep 2010 20:22:43 -0400 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:57474) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OslxR-0004zk-9i for help-gnu-emacs@gnu.org; Mon, 06 Sep 2010 20:22:41 -0400 Original-Received: by iwn33 with SMTP id 33so6906661iwn.0 for ; Mon, 06 Sep 2010 17:22:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=rW82mptvjbrw/KJWfSs3/Kq4Vxwtn1i/eCArZHVNPuU=; b=HP3G3zfu1q87sCYFH6abZKeVE64nNIRTNXMWIY8WlCVI0S5Rv8S30AHOB63tMr1ps2 5lC1ZcX2ZmbPiJ1o4VTKlYbu5jM2aYfGh2So6ldi41eU/wnT7MFwbGjTbbwWBldprPJ3 i/nQrdxagvu0Zbr3i8NaYJAQ9Cfm4LfM5pUU8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=QW3SB8mL2cQzaO+cm6eU9C2sW70KhpU6O/JcIimgys9sCF5ePN0e25ZBUF0nvsUuwy g+NBgmnJKN4AGkt3rEW7IZjZSgz8AEg78jtr4Yt5QCE1eAn73keLaTpMDSbpBZqMArGQ hsXGa/re29Pg5cXBTw2qSFe+Nb3VVGWcJpySg= Original-Received: by 10.231.187.194 with SMTP id cx2mr6433802ibb.165.1283818960712; Mon, 06 Sep 2010 17:22:40 -0700 (PDT) Original-Received: by 10.231.154.2 with HTTP; Mon, 6 Sep 2010 17:22:40 -0700 (PDT) In-Reply-To: <2491E099-746A-4074-B521-E912570D8B61@Web.DE> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:74905 Archived-At: --001636d34d1c1bf54f048fa06501 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi Peter, Do you mean the grep-command I set should be runnable in shell? I just use grep-command to store the grep template, so it cannot be run in shell. Why we need probe-grep? To test whether grep exists and whether its functio= n works correctly? Can I skip it? Thanks On Tue, Sep 7, 2010 at 4:04 AM, Peter Dyballa wrote: > > Am 06.09.2010 um 13:32 schrieb Shenli Zhu: > > > (2) change grep-command "grep -i -nH -e \"re\" -r \"/home/username/\" >> --include=3D\"*.*\"" to what I want. >> > > > Does this work from the command line? (I'd use ' instead of \" to prevent > the shell from expanding the meta-characters ``*=B4=B4 or ``.=B4=B4, whic= h could > cause the failure you observe.) > > -- > Greetings > > Pete > > Spam will be a thing of the past in two years' time. > =96 Bill Gates, Jan 2004 > > --001636d34d1c1bf54f048fa06501 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi Peter,

Do you mean the grep-command I set should be runnable in s= hell? I just use grep-command to store the grep template, so it cannot be r= un in shell.

Why we need probe-grep? To test whether grep exists and= whether its function works correctly? Can I skip it?

Thanks


On Tue, Sep 7, 2010 at 4:0= 4 AM, Peter Dyballa <Peter_Dyballa@web.de> wrote:

Am 06.09.2010 um 13:32 schrieb Shenli Zhu:


(2) change grep-command "grep -i -nH -e \"re\" -r \"/ho= me/username/\"
--include=3D\"*.*\"" to what I want.


Does this work from the command line? (I'd use ' instead of \"= to prevent the shell from expanding the meta-characters ``*=B4=B4 or ``.= =B4=B4, which could cause the failure you observe.)

--
Greetings

=A0Pete

Spam will be a thing of the past in two years' time.
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=96 Bill Ga= tes, Jan 2004


--001636d34d1c1bf54f048fa06501--