From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Is it possible to run rgrep in emacs on Win32? Date: Thu, 12 Apr 2012 10:39:57 +0200 Message-ID: <87zkahmjhe.fsf@thinkpad.tsdh.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1334220032 30373 80.91.229.3 (12 Apr 2012 08:40:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 12 Apr 2012 08:40:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 12 10:40:30 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SIFZt-0002ms-0e for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Apr 2012 10:40:29 +0200 Original-Received: from localhost ([::1]:50028 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIFZs-0004Sd-Be for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Apr 2012 04:40:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIFZh-0004Qg-Ma for help-gnu-emacs@gnu.org; Thu, 12 Apr 2012 04:40:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SIFZb-0008Ci-35 for help-gnu-emacs@gnu.org; Thu, 12 Apr 2012 04:40:17 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:52580) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIFZa-0008CN-SB for help-gnu-emacs@gnu.org; Thu, 12 Apr 2012 04:40:11 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SIFZX-0002cJ-2N for help-gnu-emacs@gnu.org; Thu, 12 Apr 2012 10:40:07 +0200 Original-Received: from tsdh.uni-koblenz.de ([141.26.67.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Apr 2012 10:40:06 +0200 Original-Received: from tassilo by tsdh.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Apr 2012 10:40:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 46 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: tsdh.uni-koblenz.de User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.1.50 (gnu/linux) Cancel-Lock: sha1:kFFiC4jSDWMwMZP5Y7xGPD+DvdU= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84432 Archived-At: Steinar Bang writes: Hi Steinar, > When I try to run rgrep it exits with no match, and in the *grep* I see > the following error message: > C:\ProgramFiles\GnuWin32\bin\find: invalid expression; I was expecting t= o find a ')' somewhere but did not see one. > > The command line is: > C:\ProgramFiles\GnuWin32\bin\find . "(" -path "*/SCCS" -o -path "*/RCS" -= o -path "*/CVS" -o -path "*/MCVS" -o -path "*/.svn" -o -path "*/.git" -o -p= ath "*/.hg" -o -path "*/.bzr" -o -path "*/_MTN" -o -path "*/_darcs" -o -pat= h "*/{arch}" ")" -prune -o "(" -name ".#*" -o -name "*.o" -o -name "*~" -o = -name "*.bin" -o -name "*.bak" -o -name "*.obj" -o -name "*.map" -o -name "= *.ico" -o -name "*.pif" -o -name "*.lnk" -o -name "*.a" -o -name "*.ln" -o = -name "*.blg" -o -name "*.bbl" -o -name "*.dll" -o -name "*.drv" -o -name "= *.vxd" -o -name "*.386" -o -name "*.elc" -o -name "*.lof" -o -name "*.glo" = -o -name "*.idx" -o -name "*.lot" -o -name "*.fmt" -o -name "*.tfm" -o -nam= e "*.class" -o -name "*.fas" -o -name "*.lib" -o -name "*.mem" -o -name "*.= x86f" -o -name "*.sparcf" -o -name "*.fasl" -o -name "*.ufsl" -o -name "*.f= sl" -o -name "*.dxl" -o -name "*.pfsl" -o -name "*.dfsl" -o -name "*.p64fsl= " -o -name "*.d64fsl" -o -name "*.dx64fsl" -o -name "*.lo" -o -name "*.la" = -o -name "*.gmo" -o -name "*.mo" -o -name "*.toc" -o -name "*.aux" -o -name= "*.cp" -o -name "*.fn" -o -name "*.ky" -o -name "*.pg" -o -name "*.tp" -o = -name "*.vr" -o -name "*.cps" -o -name "*.fns" -o -name "*.kys" -o -name "*= .pgs" -o -name "*.tps" -o -name "*.vrs" -o -name "*.pyc" -o -name "*.pyo" "= )" -prune -o -type f "(" -iname "*.csproj" ")" -print0 | xargs -0 -e grep = -i -nH -e "searchterm" > > Parantheses seems to be balanced...? Yes, and the command works just fine on a GNU/Linux box... > I haven't installed xargs, I think... unless that's part of > FindUtils...? It's part of GNU findutils, and the Win32 FindUtils say so, too: http://gnuwin32.sourceforge.net/packages/findutils.htm Does it work if you provide the full patch to xargs in the command line, e.g., C:\ProgramFiles\GnuWin32\bin\xargs? Bye, Tassilo