From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.bugs Subject: bug#7785: rgrep is broken on woe32 Date: Thu, 6 Jan 2011 10:17:17 -0500 Message-ID: References: <87d3oc17oo.fsf@telefonica.net> <83ipy3m4jv.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1294327663 16568 80.91.229.12 (6 Jan 2011 15:27:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 6 Jan 2011 15:27:43 +0000 (UTC) Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 06 16:27:34 2011 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 1ParkN-0008Pk-G0 for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Jan 2011 16:27:33 +0100 Original-Received: from localhost ([127.0.0.1]:34268 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Park9-0002ic-Oe for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Jan 2011 10:27:13 -0500 Original-Received: from [140.186.70.92] (port=42291 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Parh7-0000zS-9f for bug-gnu-emacs@gnu.org; Thu, 06 Jan 2011 10:24:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pargv-0006t3-BG for bug-gnu-emacs@gnu.org; Thu, 06 Jan 2011 10:23:54 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56388) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pargv-0006sz-9H for bug-gnu-emacs@gnu.org; Thu, 06 Jan 2011 10:23:53 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1ParUU-0003Fn-4y; Thu, 06 Jan 2011 10:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sam Steingold Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Jan 2011 15:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7785 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7785-submit@debbugs.gnu.org id=B7785.129432660712395 (code B ref 7785); Thu, 06 Jan 2011 15:11:02 +0000 Original-Received: (at 7785) by debbugs.gnu.org; 6 Jan 2011 15:10:07 +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 1ParTa-0003Dq-GW for submit@debbugs.gnu.org; Thu, 06 Jan 2011 10:10:07 -0500 Original-Received: from mail-ey0-f172.google.com ([209.85.215.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ParTX-0003DB-VH for 7785@debbugs.gnu.org; Thu, 06 Jan 2011 10:10:05 -0500 Original-Received: by eyd10 with SMTP id 10so7476043eyd.3 for <7785@debbugs.gnu.org>; Thu, 06 Jan 2011 07:17:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=Wwx2QnBiz3Lj5XPjlbE4T8BlI1Jkfn/Idde0q+uGvAI=; b=xWw+Y7M8N9MCOkUhOib2w03STi2HeUtIMuWodCgP+MSV95bbParMdCuQFs6JRWZ4dr cewEH89KpE3HJquq4eQUE8VGUVX67PlaNtjhulYyfqIOufKTKie+lpDpfADWopaukb6N bPgUDjgB4rcmY+A8FXNC+EVKxAGEOqw1xOk9s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=UdMXa3osVJ/bWQyh7z/nE0a9oc3e7pbkHISKlldDalAOs7Df3ltjl3r/4vlnlhTRx1 B7UKRMZUDJaD8XmE0bJ2zC3CNPOwPaS3I5gownabfX/djuk1JzDLctPaGv6HWrVi7U15 NN3dLJ5uUXFau9wuxyxYPfCNg0i5DdMHBhJoU= Original-Received: by 10.14.126.141 with SMTP id b13mr1092697eei.47.1294327037936; Thu, 06 Jan 2011 07:17:17 -0800 (PST) Original-Received: by 10.14.127.207 with HTTP; Thu, 6 Jan 2011 07:17:17 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: zmLSOcaD6pUx6GSS6z_M8dTDlCY X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 06 Jan 2011 10:11:02 -0500 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:43146 Archived-At: On Thu, Jan 6, 2011 at 5:24 AM, Eli Zaretskii wrote: >> Date: Wed, 5 Jan 2011 18:49:54 -0500 >> From: Sam Steingold >> Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org >> >> so I have to modify process-environment too: >> after fixing exec-path: > > I suggest to fix PATH outside Emacs instead. =C2=A0I wrote in bug#7793 wh= y. is it safe to prepend gnuwin path before the system windows paths globally for all programs? my toolchain is not limited to the gnu world, I am afraid of breaking, e.g., ms visual studio... >> \( -iname \*.el \) -print0 | xargs -0 -e grep -i -nH gnu.org >> find: paths must precede expression >> Usage: find [-H] [-L] [-P] [path...] [expression] >> >> Grep finished (matches found) at Wed Jan 05 18:44:10 >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D >> >> the error message is obviously from gnu find, but I don't see what is >> wrong with the command line. > > Which find/xargs/grep are these -- Cygwin's or GnuWin32's? it should be gnuwin. > Also, you said just a couple of messages ago, that rgrep did work for > you in "emacs -q". =C2=A0So is the only difference between that and this > whatever you have on your .emacs? =C2=A0Or am I missing something else? 1. "emacs -Q" started from bash shell: (getenv "PATH") "C:\\gnu\\cygwin\\usr\\local\\bin;C:\\gnu\\cygwin\\bin;C:\\gnu\\cygwin\\bin= ;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\gnu\\cli= sp-2.49;C:\\Program Files\\TortoiseSVN\\bin;C:\\gnu\\gnuwin32\\bin;C:\\gnu\\cygwin\\bin;D:\\bin= ;C:\\Program Files (x86)\\TortoiseHg\\;C:\\Program Files (x86)\\Bazaar;C:\\gnu\\GnuTLS-2.10.1\\bin" find . "(" -path "*/SCCS" -o -path "*/RCS" -o -path "*/CVS" -o -path "*/MCVS" -o -path "*/.svn" -o -path "*/.git" -o -path "*/.hg" ..... -exec grep -i -nH "asdf" {} NUL ";" grep: NUL: No such file or directory grep: NUL: No such file or directory grep: NUL: No such file or directory grep: NUL: No such file or directory grep: NUL: No such file or directory i.e., cygwin tools are used, which sucks because of NULs but at least things sort of work. 2. emacs started from cygwin bash shell, the only thing in .emacs: (let ((gw "c:/gnu/gnuwin32/bin")) (setq exec-path (cons gw (delete gw exec-path)))) (setenv "PATH" (mapconcat (lambda (s) (subst-char-in-string ?/ ?\\ s)) exec-path ";")) (getenv "PATH") "c:\\gnu\\gnuwin32\\bin;c:\\gnu\\cygwin\\usr\\local\\bin;C:\\gnu\\cygwin\\b= in;C:\\gnu\\cygwin\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\Syst= em32\\Wbem;C:\\gnu\\clisp-2.49;C:\\Program Files\\TortoiseSVN\\bin;C:\\gnu\\gnuwin32\\bin;C:\\gnu\\cygwin\\bin;D:\\bin= ;C:\\Program Files (x86)\\TortoiseHg\\;C:\\Program Files (x86)\\Bazaar;C:\\gnu\\GnuTLS-2.10.1\\bin;c:\\sds\\src\\emacs\\trunk\\bin" find . "(" -path "*/SCCS" -o -path "*/RCS" -o -path "*/CVS" -o.....-name "*.kys" -o -name "*.pgs" -o -name "*.tps" -o -name "*.vrs" -o -name "*.pyc" -o -name "*.pyo" ")" -prune -o -type f "(" -iname "*" -o -iname ".*" ")" -print0 | xargs -0 -e grep -i -nH "sfdg" xargs: grep: No such file or directory grep: ./src/clisp/current/src/config: No such file or directory find: write error: Invalid argument i.e., apparently, gnuwin tools are used, but nothing works. 3. emacs started with the above .emacs from the desktop shortcut (getenv "PATH") "c:\\gnu\\gnuwin32\\bin;c:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\Syst= em32\\Wbem;C:\\gnu\\clisp-2.49;C:\\Program Files\\TortoiseSVN\\bin;c:\\gnu\\cygwin\\bin;d:\\bin;C:\\Program Files (x86)\\TortoiseHg\\;C:\\Program Files (x86)\\Bazaar;C:\\gnu\\GnuTLS-2.10.1\\bin;c:\\sds\\src\\emacs\\trunk\\bin" find . "(" -path "*/SCCS" -o -path "*/RCS" -o -path "*/CVS" ..... -o -name "*.pyo" ")" -prune -o -type f "(" -iname "*" -o -iname ".*" ")" -print0 | xargs -0 -e grep -i -nH "adsf" xargs: grep: No such file or directory grep: ./src/clisp/curr: No such file or directory find: write error: Invalid argument i.e., same problems as before. 4. emacs started from desktop with my full huge .emacs but without PATH twe= aking (getenv "PATH") "C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\gnu\\cli= sp-2.49;C:\\Program Files\\TortoiseSVN\\bin;c:\\gnu\\gnuwin32\\bin;c:\\gnu\\cygwin\\bin;d:\\bin= ;C:\\Program Files (x86)\\TortoiseHg\\;C:\\Program Files (x86)\\Bazaar;C:\\gnu\\GnuTLS-2.10.1\\bin" c:/gnu/gnuwin32/bin/find . \( -path -o -path \*/attic ..... -o -iname Makefile\* -o -iname \*.xml \) -print0 | c:/gnu/gnuwin32/bin/xargs -0 -e c:/gnu/gnuwin32/bin/grep -i -nH sadf 'c:' is not recognized as an internal or external command, operable program or batch file. 5. same as 4 but without setting find-program et al FIND: Parameter format not correct 6. emacs started from desktop with my full huge .emacs with PATH tweaking without setting find-program et al: (getenv "PATH") "c:\\gnu\\gnuwin32\\bin;c:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\Syst= em32\\Wbem;C:\\gnu\\clisp-2.49;C:\\Program Files\\TortoiseSVN\\bin;c:\\gnu\\cygwin\\bin;d:\\bin;C:\\Program Files (x86)\\TortoiseHg\\;C:\\Program Files (x86)\\Bazaar;C:\\gnu\\GnuTLS-2.10.1\\bin;c:\\sds\\src\\emacs\\trunk\\bin" find . \( -path -o -path \*/attic -o -path .....-iname \*.in -o -iname Makefile\* -o -iname \*.xml \) -print0 | xargs -0 -e grep -i -nH asdf find: paths must precede expression Usage: find [-H] [-L] [-P] [path...] [expression] 7. emacs -Q started from desktop: (getenv "PATH") "C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\gnu\\cli= sp-2.49;C:\\Program Files\\TortoiseSVN\\bin;c:\\gnu\\gnuwin32\\bin;c:\\gnu\\cygwin\\bin;d:\\bin= ;C:\\Program Files (x86)\\TortoiseHg\\;C:\\Program Files (x86)\\Bazaar;C:\\gnu\\GnuTLS-2.10.1\\bin" find . "(" -path "*/SCCS" ... -name "*.pyc" -o -name "*.pyo" ")" -prune -o -type f "(" -iname "*" -o -iname ".*" ")" -exec grep -i -nH "rg " {} NUL ";" FIND: Parameter format not correct --=20 Sam Steingold