From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christoph Newsgroups: gmane.emacs.bugs Subject: bug#6665: 24.0.50; rgrep does not work on Windows Date: Sun, 18 Jul 2010 08:32:56 -0600 Message-ID: <86hbjwhnc7.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1279465259 18865 80.91.229.12 (18 Jul 2010 15:00:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 18 Jul 2010 15:00:59 +0000 (UTC) To: 6665@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 18 17:00:57 2010 Return-path: Envelope-to: geb-bug-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 1OaVMO-0002ex-NF for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Jul 2010 17:00:57 +0200 Original-Received: from localhost ([127.0.0.1]:44586 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OaVMO-0000DG-BN for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Jul 2010 11:00:56 -0400 Original-Received: from [140.186.70.92] (port=57498 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OaVM2-00004t-FF for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2010 11:00:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OaVM0-0001Gn-NJ for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2010 11:00:34 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33848) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OaVM0-0001Gi-KM for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2010 11:00:32 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OaUvN-0006db-Tm; Sun, 18 Jul 2010 10:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Christoph Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Jul 2010 14:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6665 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.127946357625506 (code B ref -1); Sun, 18 Jul 2010 14:33:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Jul 2010 14:32:56 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OaUvH-0006dL-0I for submit@debbugs.gnu.org; Sun, 18 Jul 2010 10:32:56 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OaUvC-0006ca-Rk for submit@debbugs.gnu.org; Sun, 18 Jul 2010 10:32:52 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:52766) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OaUvV-0004N1-Et for submit@debbugs.gnu.org; Sun, 18 Jul 2010 10:33:09 -0400 Original-Received: from [140.186.70.92] (port=45219 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OaUvT-0004dB-Qu for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2010 10:33:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OaUvS-0005e8-54 for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2010 10:33:07 -0400 Original-Received: from mail-gy0-f169.google.com ([209.85.160.169]:64049) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OaUvS-0005e0-1o for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2010 10:33:06 -0400 Original-Received: by gyd12 with SMTP id 12so2360943gyd.0 for ; Sun, 18 Jul 2010 07:33:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=cZOx+7t3DYrUt9Za4Nun5d0keuP8a6RFiCpvWPvVbyY=; b=HRzpWyj+NeZsrvphvz4vz290t/AvOLKqfiCLbx9D7oc1z+TKtzzRqbGL0WIfoEzIY/ 1TX8VIpevIk4sfG/nKe4SmhWcgFHKegaPnhLYNSfEo3wYcGwGrXvABzdEe68c3f8a/a0 DBj13NMoOB7q3fp8STtsO0HW1m8HNX0iYyWzQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:subject:date:message-id:user-agent:mime-version :content-type:content-transfer-encoding; b=cj5CCgus7XPeG+czhu+FhYPKBmnJ52H24MAEps7Xcg6vYWERjqMklHiQIgVmsi7Pfw lkKedjpwShUTy+FRwH05TCkQsu1k6+0+3Oa4eaYKNdUo+NXOdAeHKoApisLAKNqIZkWk job0O1lqejGwmZaXplmINn1cIu6BqPKVj821g= Original-Received: by 10.100.54.19 with SMTP id c19mr3661614ana.71.1279463584681; Sun, 18 Jul 2010 07:33:04 -0700 (PDT) Original-Received: from localhost (97-122-118-250.hlrn.qwest.net [97.122.118.250]) by mx.google.com with ESMTPS id b17sm53435226anh.5.2010.07.18.07.33.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 18 Jul 2010 07:33:03 -0700 (PDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 18 Jul 2010 10:33:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:38656 Archived-At: rgrep does not work on Windows. I am using the GnuWin32 versions of find and grep and find returns an error when used by Emacs' rgrep. Start Emacs with `emacs -Q'.=20 In *scratch* buffer evaluate the following to point to GNU find and grep ex= ecutables: (setq find-program "\"C:/Program Files (x86)/GnuWin32/bin/find.exe\"") (setq grep-program "\"C:/Program Files (x86)/GnuWin32/bin/grep.exe\"") Run `M-x rgrep'. Search for "emacs" in files "all" in base dir "d:/devel/emacs/emacs-bzr/trunk/src/oo-spd/i386/" (or something similar). *grep* buffer output: -*- mode: grep; default-directory: "d:/devel/emacs/emacs-bzr/trunk/src/oo-s= pd/i386/" -*- Grep started at Sat Jul 17 23:15:55 "C:/Program Files (x86)/GnuWin32/bin/find.exe" . "(" -path "*/SCCS" -o -pat= h "*/RCS" -o -path "*/CVS" -o -path "*/MCVS" -o -path "*/.svn" -o -path "*/= .git" -o -path "*/.hg" -o -path "*/.bzr" -o -path "*/_MTN" -o -path "*/_dar= cs" -o -path "*/{arch}" ")" -prune -o "(" -name ".#*" -o -name "*.o" -o -na= me "*~" -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 -na= me "*.glo" -o -name "*.idx" -o -name "*.lot" -o -name "*.fmt" -o -name "*.t= fm" -o -name "*.class" -o -name "*.fas" -o -name "*.lib" -o -name "*.mem" -= o -name "*.x86f" -o -name "*.sparcf" -o -name "*.fasl" -o -name "*.ufsl" -o= -name "*.fsl" -o -name "*.dxl" -o -name "*.pfsl" -o -name "*.dfsl" -o -nam= e "*.p64fsl" -o -name "*.d64fsl" -o -name "*.dx64fsl" -o -name "*.lo" -o -n= ame "*.la" -o -name "*.gmo" -o -name "*.mo" -o -name "*.toc" -o -name "*.au= x" -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 -nam= e "*.pyo" ")" -prune -o -type f "(" -iname "*" -o -iname ".*" ")" -exec "C= :/Program Files (x86)/GnuWin32/bin/grep.exe" -i -n "emacs" {} NUL ";" C:/Program Files (x86)/GnuWin32/bin/find.exe: paths must precede expression Usage: C:/Program Files (x86)/GnuWin32/bin/find.exe [-H] [-L] [-P] [path...= ] [expression] Grep finished with no matches found at Sat Jul 17 23:15:55 `M-x grep' and `M-x lgrep', as well as `M-x grep-find' work fine. http://linux.die.net/man/1/find talks about this particular error in section "Non-bugs", but as far as I can tell the files are enclosed in quotes corre= ctly. In GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7600) of 2010-07-17 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.1.7600 configured using `configure --with-gcc (3.4) --cflags -IC:/Progra~2/GnuWin3= 2/include -ID:/devel/emacs/libXpm-3.5.8/include -ID:/devel/emacs/libXpm-3.5= .8/src' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Grep Minor modes in effect: ido-everywhere: t yas/global-mode: t global-auto-revert-mode: t delete-selection-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t Recent input: C-x RET r g r e p =20 C-x RET t e s t =20 C-x RET =20 q C-x k C-x k =20 =20 C-x RET g r e=20 p - f i n d s e t q SPC * e .=20 e l C-x k y e s C-x RET=20 r g r e p C-x o=20 C-SPC C-SPC C-n C-n C-n C-n C-n C-n C-n M-w C-x RET=20 r e p o r t Recent messages: call-interactively: Beginning of buffer Quit Grep finished with no matches found Mark set Mark activated Load-path shadows: None found. Features: (shadow sort gnus-cite mail-extr gnus-msg gnus-art mm-uu mml2015 pgg pgg-parse pgg-def epg-config mm-view smime password-cache dig mailcap gnus-sum nnoo gnus-group time-date gnus-undo nnmail mail-source format-spec gnus-start gnus-spec gnus-int gnus-range gnus-win message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus gnus-ems nnheader gnus-util mail-utils mm-util mail-prsvr emacsbug find-dired server package re-builder ack-emacs ibuffer nav nav-tags python-21 python nav-bufs xcscope anything-config warnings semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw loaddefs eieio byte-opt bytecomp byte-compile mode-local cedet imenu bookmark pp ffap dired rx thingatpt anything woman man cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs grep-o-matic grep compile comint browse-kill-ring+ browse-kill-ring second-sel ido yasnippet dropdown-list derived easy-mmode assoc etags-table etags ring remember zenburn color-theme edmacro kmacro wid-edit cl cl-19 sendmail regexp-opt reporter easymenu uniquify advice help-fns advice-preload autorevert delsel tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs)