From unknown Sat Jun 14 17:58:15 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#7785 <7785@debbugs.gnu.org> To: bug#7785 <7785@debbugs.gnu.org> Subject: Status: rgrep is broken on woe32 Reply-To: bug#7785 <7785@debbugs.gnu.org> Date: Sun, 15 Jun 2025 00:58:15 +0000 retitle 7785 rgrep is broken on woe32 reassign 7785 emacs submitter 7785 Sam Steingold severity 7785 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 04 18:40:42 2011 Received: (at submit) by debbugs.gnu.org; 4 Jan 2011 23:40:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaGUc-0000Tv-3C for submit@debbugs.gnu.org; Tue, 04 Jan 2011 18:40:42 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaGUa-0000Tk-6l for submit@debbugs.gnu.org; Tue, 04 Jan 2011 18:40:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PaGbV-00080H-Lk for submit@debbugs.gnu.org; Tue, 04 Jan 2011 18:47:50 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RFC_ABUSE_POST, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:51332) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PaGbV-00080D-Hb for submit@debbugs.gnu.org; Tue, 04 Jan 2011 18:47:49 -0500 Received: from [140.186.70.92] (port=37830 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PaGbU-0005qi-Fz for bug-gnu-emacs@gnu.org; Tue, 04 Jan 2011 18:47:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PaGbP-0007zY-Fz for bug-gnu-emacs@gnu.org; Tue, 04 Jan 2011 18:47:48 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:61687) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PaGbP-0007zH-7y for bug-gnu-emacs@gnu.org; Tue, 04 Jan 2011 18:47:43 -0500 Received: by eyh6 with SMTP id 6so3453951eyh.0 for ; Tue, 04 Jan 2011 15:47:42 -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:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=Pr8ge4korDtPkxIa7sR94xbihLdeRjzP9J1Ej679g3A=; b=or0eAl+a9BBB4fzK95RTaDmdyq6/aT1Ay7TATjE0WWX6Dy2JJ87x4Q1yaSpRZ9O1Wp JPQHdAAVYmlUfsl+xk19C6Me0kQtjL8gMm1vQnyQ26WBBF/4/K4bvlC57dq1YcoUjddZ a4APRDkFcTiZzruN/laFpzc4tFebVMvlF8Kxs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=aaeXUTcSaFGGJxWXy34kaRGxtY01b2rIwIncFV+LZqMeVhApn/PCWLhMEn4GGaJjrL SegnykR7SW861Njxn+FEheCR45fKUGQFjUMuAL+jUS8DVe7/q3DO7IIG4sGqJaQhJm6Z KOdNkhracnkfp4zC3VQ0Mdq7p55qVlyTd+yIo= MIME-Version: 1.0 Received: by 10.14.16.164 with SMTP id h36mr7416211eeh.37.1294184860990; Tue, 04 Jan 2011 15:47:40 -0800 (PST) Received: by 10.14.127.207 with HTTP; Tue, 4 Jan 2011 15:47:40 -0800 (PST) Date: Tue, 4 Jan 2011 18:47:40 -0500 X-Google-Sender-Auth: F8thIqiHMXvWjyMwGWx2G1ER7mA Message-ID: Subject: rgrep is broken on woe32 From: Sam Steingold To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) GNU Emacs 23.2.1 (i386-mingw-nt5.2.3790) of 2010-05-08 on G41R2F1 --with-gcc (3.4) --no-opt --cflags -Ic:/xpm/include (custom-set-variables '(grep-find-use-xargs 'gnu) '(grep-use-null-device nil)) (rgrep "ff-" ".emacs" "d:/.../" nil) ======================================= -*- mode: grep; default-directory: "d:/.../" -*- Grep started at Tue Jan 04 18:42:28 c:/gnu/cygwin/bin/find . \( -path -o -path \*/attic -o -path \*/junk -o -path \*/SCCS -o -path \*/RCS -o -path \*/CVS -o -path \*/MCVS -o -path \*/.svn -o -path \*/.git -o -path \*/.hg -o -path \*/.bzr -o -path \*/_MTN -o -path \*/_darcs -o -path \*/\{arch\} \) -prune -o \( -name .\#\* -o -name \*.bc -o -name \*.exe -o -name \*.cmxa -o -name \*.cmx -o -name \*.cmo -o -name \*.cmi -o -name \*.cma -o -name \*.spit -o -name \*.spot -o -name \*.omc -o -name \*.data -o -name \*.old -o -name \*.tmp -o -name \*.annot -o -name \*.p -o -name \*.err -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 -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 -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 .emacs \) -print0 | xargs -0 -e grep -i -nH ff- /usr/bin/find: invalid expression; I was expecting to find a ')' somewhere but did not see one. Grep finished with no matches found at Tue Jan 04 18:42:28 ======================================= when I paste the above command into a cygwin shell window, it works just fine (finds what I need). i.e., the () in the command are actually well balanced. -- Sam Steingold From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 04 19:58:22 2011 Received: (at 7785) by debbugs.gnu.org; 5 Jan 2011 00:58:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaHhl-000289-Lw for submit@debbugs.gnu.org; Tue, 04 Jan 2011 19:58:22 -0500 Received: from impaqm4.telefonica.net ([213.4.138.20] helo=telefonica.net) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaHhj-00027w-EP for 7785@debbugs.gnu.org; Tue, 04 Jan 2011 19:58:20 -0500 Received: from IMPmailhost4.adm.correo ([10.20.102.125]) by IMPaqm4.telefonica.net with bizsmtp id rd4q1f00K2iL0W23Qd5UHb; Wed, 05 Jan 2011 02:05:28 +0100 Received: from qcore ([88.24.214.212]) by IMPmailhost4.adm.correo with BIZ IMP id rd5T1f0034bXV5U1kd5TAD; Wed, 05 Jan 2011 02:05:28 +0100 X-Brightmail-Tracker: AAAAAA== X-original-sender: 981711563@telefonica.net From: =?utf-8?Q?=C3=93scar_Fuentes?= To: Sam Steingold Subject: Re: bug#7785: rgrep is broken on woe32 References: Date: Wed, 05 Jan 2011 02:05:27 +0100 In-Reply-To: (Sam Steingold's message of "Tue, 4 Jan 2011 18:47:40 -0500") Message-ID: <87d3oc17oo.fsf@telefonica.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 7785 Cc: 7785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Sam Steingold writes: [snip] > /usr/bin/find: invalid expression; I was expecting to find a ')' > somewhere but did not see one. > > Grep finished with no matches found at Tue Jan 04 18:42:28 > ======================================= > > when I paste the above command into a cygwin shell window, it works > just fine (finds what I need). > i.e., the () in the command are actually well balanced. This looks like the string length restriction in cmdproxy.exe reported in http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6674#74 It was patched, as indicated on the subsequent messages on that thread. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 05 06:25:59 2011 Received: (at 7785-done) by debbugs.gnu.org; 5 Jan 2011 11:25:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaRV9-0006qO-A3 for submit@debbugs.gnu.org; Wed, 05 Jan 2011 06:25:59 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaRV1-0006q6-1w for 7785-done@debbugs.gnu.org; Wed, 05 Jan 2011 06:25:56 -0500 Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1PaRbu-0004yP-LI; Wed, 05 Jan 2011 06:32:58 -0500 From: Eli Zaretskii To: =?UTF-8?Q?=C3=93scar?= Fuentes In-reply-to: <87d3oc17oo.fsf@telefonica.net> (message from =?UTF-8?Q?=C3=93scar?= Fuentes on Wed, 05 Jan 2011 02:05:27 +0100) Subject: Re: bug#7785: rgrep is broken on woe32 References: <87d3oc17oo.fsf@telefonica.net> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-Id: Date: Wed, 05 Jan 2011 06:32:58 -0500 X-Spam-Score: -6.5 (------) X-Debbugs-Envelope-To: 7785-done Cc: sds@gnu.org, 7785-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) > From: Óscar Fuentes > Date: Wed, 05 Jan 2011 02:05:27 +0100 > Cc: 7785@debbugs.gnu.org > > Sam Steingold writes: > > [snip] > > > /usr/bin/find: invalid expression; I was expecting to find a ')' > > somewhere but did not see one. > > > > Grep finished with no matches found at Tue Jan 04 18:42:28 > > ======================================= > > > > when I paste the above command into a cygwin shell window, it works > > just fine (finds what I need). > > i.e., the () in the command are actually well balanced. > > This looks like the string length restriction in cmdproxy.exe reported > in > > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6674#74 > > It was patched, as indicated on the subsequent messages on that thread. Indeed. Sam, please use the latest pretest of Emacs 23.3, where this problem should be fixed. Closing the bug. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 05 15:18:42 2011 Received: (at 7785) by debbugs.gnu.org; 5 Jan 2011 20:18:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaZof-0002sc-H5 for submit@debbugs.gnu.org; Wed, 05 Jan 2011 15:18:41 -0500 Received: from mail-ey0-f172.google.com ([209.85.215.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaZoe-0002sR-Eg for 7785@debbugs.gnu.org; Wed, 05 Jan 2011 15:18:40 -0500 Received: by eyd10 with SMTP id 10so7156739eyd.3 for <7785@debbugs.gnu.org>; Wed, 05 Jan 2011 12:25:52 -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; bh=jzU4piDdnbhMWNYUBERgj+AteU9f5wumA5aN60lRhM0=; b=Sk7WFKKdn/fMJH8KdSp/T2j06ssQ0b6GSmonS8JEOel03ZyM7L2VGT8h2YrPdtfLe1 cOjjCXE3K3N+Pxtb2HqkKJXSaFXjo3igCCJO0vRJAiJ+bA1nK5YYr64xVwzFHtT7vhK/ NXFochwbuLPPdC2dmCa+WSGQhfsJBxgKhiHPw= 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; b=Y/0+euOGH+KAGkVfn8hqktCw21KZxbw8/8X2tMUOo6VTu6vTTgoyacClGy9fKd9rf5 Q5QeteeDjXLJjSJtqQk8aZad31D73qC1ztNB/Xygd7JBaRn6yAzNJILm9Yfoc8fHKdhq AUzANLvBfiI9YZ6y+lFEhbhhLOv2eFzlMpuP0= MIME-Version: 1.0 Received: by 10.14.16.164 with SMTP id h36mr596020eeh.37.1294259152236; Wed, 05 Jan 2011 12:25:52 -0800 (PST) Received: by 10.14.127.207 with HTTP; Wed, 5 Jan 2011 12:25:52 -0800 (PST) In-Reply-To: References: <87d3oc17oo.fsf@telefonica.net> Date: Wed, 5 Jan 2011 15:25:52 -0500 X-Google-Sender-Auth: MmKrX-3lrYFjTlpc88aXcAd1g_I Message-ID: Subject: Re: bug#7785: rgrep is broken on woe32 From: Sam Steingold To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 7785 Cc: =?UTF-8?Q?=C3=93scar_Fuentes?= , 7785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.1 (----) I see the exact same same error with the current bzr tip From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 05 15:21:39 2011 Received: (at 7785) by debbugs.gnu.org; 5 Jan 2011 20:21:39 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaZrW-0002wl-Ov for submit@debbugs.gnu.org; Wed, 05 Jan 2011 15:21:39 -0500 Received: from mail-ew0-f44.google.com ([209.85.215.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaZrV-0002wZ-2K for 7785@debbugs.gnu.org; Wed, 05 Jan 2011 15:21:37 -0500 Received: by ewy8 with SMTP id 8so7434524ewy.3 for <7785@debbugs.gnu.org>; Wed, 05 Jan 2011 12:28:49 -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; bh=U/74beG9svPfSC66M65HCyDCY1rZiyJqfc/YoDvms0s=; b=YG3e2o8B5G9XT2XOg92J6AM85v04mlUy1j/2E2aIC9WkU+6y8R6JOB0Cdzd5ne8943 IDAyWnbbBELld0fUQbrvphjOfYyashmBdVSct4b1eLLupCaQSBGezTAjZSQ0j+zMTyzV SKTPhkd2z9ZluD3aDNj2s251fIAwdWM9uazO0= 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; b=L7P3SUGe1LJBVJvy3xRba3GvPJlVmkSrOhqCMPF0y69fmZdQgkuVH3xQ1YYg1AG7Vv mBdmGGJrxsQhese2txdu2U7EOGPaXuRSRH8ihn6BmBtOMH0G/L3SE26zmNH5tEXHsZ4A aadTHksX/HZ2E/tlEXMBTBokeFw6OhEfvv+EQ= MIME-Version: 1.0 Received: by 10.213.17.75 with SMTP id r11mr99426eba.66.1294259328782; Wed, 05 Jan 2011 12:28:48 -0800 (PST) Received: by 10.14.127.207 with HTTP; Wed, 5 Jan 2011 12:28:48 -0800 (PST) In-Reply-To: References: <87d3oc17oo.fsf@telefonica.net> Date: Wed, 5 Jan 2011 15:28:48 -0500 X-Google-Sender-Auth: 0QYY7CgUeyytQ0zD1R7pwXmbGPA Message-ID: Subject: Re: bug#7785: rgrep is broken on woe32 From: Sam Steingold To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: 7785 Cc: =?UTF-8?Q?=C3=93scar_Fuentes?= , 7785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.1 (----) when I edit the command line manually so that it is shorter than 1024 chars, the error message becomes extra bizarre: -*- mode: grep; default-directory: "d:/.../" -*- Grep started at Wed Jan 05 15:27:21 c:/gnu/cygwin/bin/find . \( -path -o -path \*/attic -o -path \*/junk -o -path \*/SCCS -o -path \*/RCS -o -path \*/CVS -o -path \*/MCVS -o -path \*/.svn -o -path \*/.git -o -path \*/.hg -o -path \*/.bzr -o -path \*/_MTN -o -path \*/_darcs -o -path \*/\{arch\} \) -prune -o \( -name .\#\* -o -name \*.bc -o -name \*.exe -o -name \*.cmxa -o -name \*.cmx -o -name \*.cmo -o -name \*.cmi -o -name \*.cma -o -name \*.spit -o -name \*.spot -o -name \*.omc -o -name \*.data -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 \*.cc -o -iname \*.\[ch\]xx -o -iname \*.\[ch\]pp -o -iname \*.\[CHh\] -o -iname \*.CC -o -iname \*.HH -o -iname \*.\[ch\]\+\+ \) -print0 | xargs -0 -e grep -i -nH gettempdir 'c:' is not recognized as an internal or external command, operable program or batch file. Grep exited abnormally with code 255 at Wed Jan 05 15:27:21 -- Sam Steingold From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 05 15:43:15 2011 Received: (at 7785) by debbugs.gnu.org; 5 Jan 2011 20:43:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaaCR-0003QM-Mn for submit@debbugs.gnu.org; Wed, 05 Jan 2011 15:43:15 -0500 Received: from impaqm2.telefonica.net ([213.4.138.18] helo=telefonica.net) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaaCO-0003Q8-Si for 7785@debbugs.gnu.org; Wed, 05 Jan 2011 15:43:14 -0500 Received: from IMPmailhost1.adm.correo ([10.20.102.38]) by IMPaqm2.telefonica.net with bizsmtp id rvjK1f00d0piX6q3Mwq3pn; Wed, 05 Jan 2011 21:50:03 +0100 Received: from qcore ([88.24.214.212]) by IMPmailhost1.adm.correo with BIZ IMP id rwq21f0094bXV5U1hwq27a; Wed, 05 Jan 2011 21:50:03 +0100 X-Brightmail-Tracker: AAAAAA== X-original-sender: 981711563@telefonica.net From: =?utf-8?Q?=C3=93scar_Fuentes?= To: Sam Steingold Subject: Re: bug#7785: rgrep is broken on woe32 References: <87d3oc17oo.fsf@telefonica.net> Date: Wed, 05 Jan 2011 21:50:01 +0100 In-Reply-To: (Sam Steingold's message of "Wed, 5 Jan 2011 15:28:48 -0500") Message-ID: <87k4ijxeh2.fsf@wanadoo.es> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 7785 Cc: =?utf-8?Q?=C3=93scar?= Fuentes , 7785@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.2 (--) Sam Steingold writes: > when I edit the command line manually so that it is shorter than 1024 chars, > the error message becomes extra bizarre: [snip] Maybe you are mixing Cygwin's find with gnuwin32 grep ? From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 05 16:12:37 2011 Received: (at 7785) by debbugs.gnu.org; 5 Jan 2011 21:12:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Paaer-00044p-FX for submit@debbugs.gnu.org; Wed, 05 Jan 2011 16:12:37 -0500 Received: from mtaout23.012.net.il ([80.179.55.175]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Paaeo-00044Z-Fn for 7785@debbugs.gnu.org; Wed, 05 Jan 2011 16:12:35 -0500 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LEK00900J3LK700@a-mtaout23.012.net.il> for 7785@debbugs.gnu.org; Wed, 05 Jan 2011 23:19:45 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.127.157]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LEK009UIJ8WB970@a-mtaout23.012.net.il>; Wed, 05 Jan 2011 23:19:45 +0200 (IST) Date: Wed, 05 Jan 2011 23:19:48 +0200 From: Eli Zaretskii Subject: Re: bug#7785: rgrep is broken on woe32 In-reply-to: To: Sam Steingold Message-id: <83ipy3m4jv.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: QUOTED-PRINTABLE X-012-Sender: halo1@inter.net.il References: <87d3oc17oo.fsf@telefonica.net> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 7785 Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > Date: Wed, 5 Jan 2011 15:28:48 -0500 > From: Sam Steingold > Cc: =C3=93scar Fuentes , 7785@debbugs.gnu.org >=20 > 'c:' is not recognized as an internal or external command, > operable program or batch file. This message comes from cmd.exe, the native Windows shell. Since you probably have a setup where the Cygwin Bash should have been called, = I suspect some snafu with setting up Emacs for Cygwin. Can you try the same with native Windows ports of find, xargs, and grep, and in "emacs -Q"? Also, what does this mean: -*- mode: grep; default-directory: "d:/.../" -*- ^^^^^^^ Could it be that this is the culprit? FWIW, I just tried that with Emacs 23.2.91, the latest pretest, and with the trunk of Emacs 24 built a few days ago, and the same command as you invoked works for me, except that the last argument is not "d:/.../", but a valid directory. But my Findutils are native Window= s programs, and the shell is the native Windows shell. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 05 16:13:05 2011 Received: (at 7785) by debbugs.gnu.org; 5 Jan 2011 21:13:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaafI-00045q-Nu for submit@debbugs.gnu.org; Wed, 05 Jan 2011 16:13:05 -0500 Received: from mail-ew0-f44.google.com ([209.85.215.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaafG-00045K-0f for 7785@debbugs.gnu.org; Wed, 05 Jan 2011 16:13:02 -0500 Received: by ewy8 with SMTP id 8so7456046ewy.3 for <7785@debbugs.gnu.org>; Wed, 05 Jan 2011 13:20:14 -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=1EBmbH8JrBGpiLVx2ZaLcjUCMw0jjuBFbW92AJCp/no=; b=kNfukRkZr8CMYMIGpBGB34INJIwcBqEJbNHKMKHsLj3pKGZEkgUjaYfp/Dut2+8gAe Ck6o4CgMocL3nklPcso6FgSQjTpHl0EX0mgt2gEWRFSRoxvIh31QArfvQZ3dYxmGVvlq I29R0f+wQkIjkWOFfqgId/9wIosHMvHUpGBhU= 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=b6CqrWXWHqTn9yYu6Xng2/4RMC0+JG2U7vFoWWRV9osCsJWLMDSg0bepxb5K0ZhBDF H5UEZ4u+tr9iOhYab9jXbErDS+rLhUBcrbfbHtdibG1UGzEOrDnJtIM3IyPpgIC5a4e1 WfESfu9Nrlh8G/DHrZ8yyAi5w6vrhaHBJHwD4= MIME-Version: 1.0 Received: by 10.14.16.164 with SMTP id h36mr625780eeh.37.1294262413785; Wed, 05 Jan 2011 13:20:13 -0800 (PST) Received: by 10.14.127.207 with HTTP; Wed, 5 Jan 2011 13:20:13 -0800 (PST) In-Reply-To: <87k4ijxeh2.fsf@wanadoo.es> References: <87d3oc17oo.fsf@telefonica.net> <87k4ijxeh2.fsf@wanadoo.es> Date: Wed, 5 Jan 2011 16:20:13 -0500 X-Google-Sender-Auth: 50Ksd5XLm8CLHzqfYH_UNa9Mi9k Message-ID: Subject: Re: bug#7785: rgrep is broken on woe32 From: Sam Steingold To: =?UTF-8?Q?=C3=93scar_Fuentes?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: 7785 Cc: 7785@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.0 (----) On Wed, Jan 5, 2011 at 3:50 PM, =C3=93scar Fuentes wrote: > Sam Steingold writes: > >> when I edit the command line manually so that it is shorter than 1024 ch= ars, >> the error message becomes extra bizarre: > > [snip] > > Maybe you are mixing Cygwin's find with gnuwin32 grep ? > no, I am not. here is the same error with the full paths: -*- mode: grep; default-directory: "d:/.../" -*- Grep started at Wed Jan 05 16:18:46 c:/gnu/gnuwin32/bin/find . \( -path -o -path \*/attic -o -path \*/junk -o -path \*/SCCS -o -path \*/RCS -o -path \*/CVS -o -path \*/MCVS -o -path \*/.svn -o -path \*/.git -o -path \*/.hg -o -path \*/.bzr -o -path \*/_MTN -o -path \*/_darcs -o -path \*/\{arch\} \) -prune -o \( -name .\#\* -o -name \*.bc -o -name \*.exe -o -name \*.cmxa -o -name \*.cmx -o -name \*.cmo -o -name \*.cmi -o -name \*.cma -o -name \*.spit -o -name \*.spot -o -name \*.omc -o -name \*.data -o -name \*.old -o -name \*.tmp -o -name \*.annot -o -name \*.p -o -name \*.err -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 -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 -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 \*.cc -o -iname \*.\[ch\]xx -o -iname \*.\[ch\]pp -o -iname \*.\[CHh\] -o -iname \*.CC -o -iname \*.HH -o -iname \*.\[ch\]\+\+ \) -print0 | c:/gnu/gnuwin32/bin/xargs -0 -e c:/gnu/gnuwin32/bin/grep -i -nH gettempdir 'c:' is not recognized as an internal or external command, operable program or batch file. Grep exited abnormally with code 255 at Wed Jan 05 16:18:47 --=20 Sam Steingold From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 05 16:18:56 2011 Received: (at 7785) by debbugs.gnu.org; 5 Jan 2011 21:18:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Paaky-0004EG-2t for submit@debbugs.gnu.org; Wed, 05 Jan 2011 16:18:56 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Paakw-0004E3-6l for 7785@debbugs.gnu.org; Wed, 05 Jan 2011 16:18:55 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LEK00I00JG2EZ00@a-mtaout20.012.net.il> for 7785@debbugs.gnu.org; Wed, 05 Jan 2011 23:26:01 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.127.157]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LEK00I1JJJ98Z40@a-mtaout20.012.net.il>; Wed, 05 Jan 2011 23:25:58 +0200 (IST) Date: Wed, 05 Jan 2011 23:26:01 +0200 From: Eli Zaretskii Subject: Re: bug#7785: rgrep is broken on woe32 In-reply-to: X-012-Sender: halo1@inter.net.il To: Sam Steingold Message-id: <83hbdnm49i.fsf@gnu.org> References: <87d3oc17oo.fsf@telefonica.net> <87k4ijxeh2.fsf@wanadoo.es> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 7785 Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > Date: Wed, 5 Jan 2011 16:20:13 -0500 > From: Sam Steingold > Cc: Eli Zaretskii , 7785@debbugs.gnu.org > > c:/gnu/gnuwin32/bin/find . \( -path -o -path \*/attic -o -path > ... > \*.\[ch\]pp -o -iname \*.\[CHh\] -o -iname \*.CC -o -iname \*.HH -o > -iname \*.\[ch\]\+\+ \) -print0 | c:/gnu/gnuwin32/bin/xargs -0 -e > c:/gnu/gnuwin32/bin/grep -i -nH gettempdir > 'c:' is not recognized as an internal or external command, > operable program or batch file. So are you using find/grep/xargs from GnuWin32 or from Cygwin? Or is the error the same regardless? From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 05 16:26:15 2011 Received: (at 7785) by debbugs.gnu.org; 5 Jan 2011 21:26:15 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Paas2-0004OL-Th for submit@debbugs.gnu.org; Wed, 05 Jan 2011 16:26:15 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Paas0-0004O9-VB for 7785@debbugs.gnu.org; Wed, 05 Jan 2011 16:26:14 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LEK00I00JQ8GQ00@a-mtaout20.012.net.il> for 7785@debbugs.gnu.org; Wed, 05 Jan 2011 23:33:25 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.127.157]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LEK00IKQJVN6I50@a-mtaout20.012.net.il>; Wed, 05 Jan 2011 23:33:25 +0200 (IST) Date: Wed, 05 Jan 2011 23:33:27 +0200 From: Eli Zaretskii Subject: Re: bug#7785: rgrep is broken on woe32 In-reply-to: X-012-Sender: halo1@inter.net.il To: Sam Steingold Message-id: <83fwt7m3x4.fsf@gnu.org> References: <87d3oc17oo.fsf@telefonica.net> <87k4ijxeh2.fsf@wanadoo.es> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 7785 Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > Date: Wed, 5 Jan 2011 16:20:13 -0500 > From: Sam Steingold > Cc: Eli Zaretskii , 7785@debbugs.gnu.org > > -iname \*.\[ch\]\+\+ \) -print0 | c:/gnu/gnuwin32/bin/xargs -0 -e > c:/gnu/gnuwin32/bin/grep -i -nH gettempdir > 'c:' is not recognized as an internal or external command, > operable program or batch file. I think forward slashes are not supported in the pipe parts after the first `|'. Only the first command gets its slashes mirrored. Can you try adding "c:\gnu\gnuwin32\bin" to your PATH (Emacs will need to be restarted afterwards)? If that doesn't help, can you try with GnuWin32 ports, but configure rgrep not to use xargs? From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 05 17:22:11 2011 Received: (at 7785) by debbugs.gnu.org; 5 Jan 2011 22:22:11 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PabkB-0005be-3X for submit@debbugs.gnu.org; Wed, 05 Jan 2011 17:22:11 -0500 Received: from impaqm5.telefonica.net ([213.4.138.21] helo=telefonica.net) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pabk7-0005bQ-N4 for 7785@debbugs.gnu.org; Wed, 05 Jan 2011 17:22:09 -0500 Received: from IMPmailhost2.adm.correo ([10.20.102.39]) by IMPaqm5.telefonica.net with bizsmtp id ryKH1f00J0r0BT63RyV9Zd; Wed, 05 Jan 2011 23:29:09 +0100 Received: from qcore ([88.24.214.212]) by IMPmailhost2.adm.correo with BIZ IMP id ryV71f0064bXV5U1iyV7Eh; Wed, 05 Jan 2011 23:29:08 +0100 X-Brightmail-Tracker: AAAAAA== X-original-sender: 981711563@telefonica.net From: =?utf-8?Q?=C3=93scar_Fuentes?= To: Sam Steingold Subject: Re: bug#7785: rgrep is broken on woe32 References: <87d3oc17oo.fsf@telefonica.net> <87k4ijxeh2.fsf@wanadoo.es> Date: Wed, 05 Jan 2011 23:29:06 +0100 In-Reply-To: (Sam Steingold's message of "Wed, 5 Jan 2011 16:20:13 -0500") Message-ID: <874o9nx9vx.fsf@wanadoo.es> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.2 (--) X-Debbugs-Envelope-To: 7785 Cc: =?utf-8?Q?=C3=93scar?= Fuentes , 7785@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.2 (--) Sam Steingold writes: >> Maybe you are mixing Cygwin's find with gnuwin32 grep ? >> > > no, I am not. > here is the same error with the full paths: [snip] Maybe it is related to this: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6784 From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 05 17:36:05 2011 Received: (at 7785) by debbugs.gnu.org; 5 Jan 2011 22:36:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pabxd-0005tz-CZ for submit@debbugs.gnu.org; Wed, 05 Jan 2011 17:36:05 -0500 Received: from mail-ew0-f44.google.com ([209.85.215.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pabxb-0005tU-Nf for 7785@debbugs.gnu.org; Wed, 05 Jan 2011 17:36:04 -0500 Received: by ewy8 with SMTP id 8so7486676ewy.3 for <7785@debbugs.gnu.org>; Wed, 05 Jan 2011 14:43:16 -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=okV0Vrnp7SswXVMuY+2LI9pTv8Zfrc9CEfb8W0mln9I=; b=D0CE8hB6boZrfdC9Av6BZAkBaEULOsIynuI56ymO5+0vC+E8ia/nJTGZVl10CHsrtR xPjrqB2dpAGR6Uhh7FZbn4x4QjxsW/MK6l+iFvaI8g/dnEKrIyZZc9jOUdAXqDBrbLUm bGa2obtxHBgcplVW/EvrJPllC40gI88eyVh+k= 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=Cm5HH/RX7Xc4V2/3+1rBb96FbEDpCy4azwUKG+nxBf6Y2t8QMkSNy3eLg5WYNImdj2 TvkXYnLnBAnVgXGctaKK3NqFM4BkwNaaUMw/F04cufHH9dsZNXG0LNMVObHBRCPok9aw 9tFq6RfgAPkk/1Xid/QwizbbUnnhRZF0yZpno= MIME-Version: 1.0 Received: by 10.14.16.164 with SMTP id h36mr666926eeh.37.1294267395855; Wed, 05 Jan 2011 14:43:15 -0800 (PST) Received: by 10.14.127.207 with HTTP; Wed, 5 Jan 2011 14:43:15 -0800 (PST) In-Reply-To: <874o9nx9vx.fsf@wanadoo.es> References: <87d3oc17oo.fsf@telefonica.net> <87k4ijxeh2.fsf@wanadoo.es> <874o9nx9vx.fsf@wanadoo.es> Date: Wed, 5 Jan 2011 17:43:15 -0500 X-Google-Sender-Auth: BdGB9gdMx1rjuBvtGtK47OvSJb4 Message-ID: Subject: Re: bug#7785: rgrep is broken on woe32 From: Sam Steingold To: =?UTF-8?Q?=C3=93scar_Fuentes?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: 7785 Cc: 7785@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.0 (----) On Wed, Jan 5, 2011 at 5:29 PM, =C3=93scar Fuentes wrote: > > Maybe it is related to this: > > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D6784 > definitely. is that bug going to be fixed? --=20 Sam Steingold From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 05 17:38:33 2011 Received: (at 7785) by debbugs.gnu.org; 5 Jan 2011 22:38:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pac00-0005xG-Kg for submit@debbugs.gnu.org; Wed, 05 Jan 2011 17:38:32 -0500 Received: from mail-ey0-f172.google.com ([209.85.215.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pabzy-0005x4-Ki for 7785@debbugs.gnu.org; Wed, 05 Jan 2011 17:38:31 -0500 Received: by eyd10 with SMTP id 10so7210724eyd.3 for <7785@debbugs.gnu.org>; Wed, 05 Jan 2011 14:45:43 -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=yuYA7RJhFMoTOMOJoWmmqgjKG1irsMZkaOqo30GFQf8=; b=i3yTj3oUDnc3YE+5gQN6S7gAkTs/AYb+HSHl68h2cpNY7jCyyCnbtMrb7KIzum2Fiq UNT37j5wNbspT6cuYoVQadUTqeTQrvR1UwjuhjmkTyf+z8sVTcnk4w6dldwdD8QIsC+Q ocYD7xqp7n2yaThxXEe2TNCiRLk+YusRHOnVE= 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=Tuq6yo75eAH0kFwiGjZJGSyNDdSPez+45kcfziCqvHda2WGXK7NDuCthOpZ32JepDv ufZdthxUEwLLOFOyvNreqgd1xf4JwlOlYvNNMArUcYP79CcFGCGRcsAUtTUUrJdywL0C bgXTZ91qH3hYeE+wBNkan9vIu9hglWJhQABg8= MIME-Version: 1.0 Received: by 10.14.126.141 with SMTP id b13mr666539eei.47.1294267542855; Wed, 05 Jan 2011 14:45:42 -0800 (PST) Received: by 10.14.127.207 with HTTP; Wed, 5 Jan 2011 14:45:42 -0800 (PST) In-Reply-To: <83ipy3m4jv.fsf@gnu.org> References: <87d3oc17oo.fsf@telefonica.net> <83ipy3m4jv.fsf@gnu.org> Date: Wed, 5 Jan 2011 17:45:42 -0500 X-Google-Sender-Auth: IeAFfdSHE1Tl7HNYVPeWNSO62j8 Message-ID: Subject: Re: bug#7785: rgrep is broken on woe32 From: Sam Steingold To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: 7785 Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.0 (----) On Wed, Jan 5, 2011 at 4:19 PM, Eli Zaretskii wrote: >> Date: Wed, 5 Jan 2011 15:28:48 -0500 >> From: Sam Steingold >> Cc: =C3=93scar Fuentes , 7785@debbugs.gnu.org >> >> 'c:' is not recognized as an internal or external command, >> operable program or batch file. > > This message comes from cmd.exe, the native Windows shell. =C2=A0Since yo= u > probably have a setup where the Cygwin Bash should have been called, I > suspect some snafu with setting up Emacs for Cygwin. =C2=A0Can you try th= e > same with native Windows ports of find, xargs, and grep, and in > "emacs -Q"? this works just fine, like on linux: PATH=3D/cygdrive/c/gnu/gnuwin32/bin:$PATH emacs -q moreover, emacs -q and moving gnuwin dir to the beginning of exec-path with (let ((gw "c:/gnu/gnuwin32/bin")) (setq exec-path (cons gw (delete gw exec-path)))) also works fine. however, without "-q" I get various errors, mostly "FIND: Parameter format not correct" despite exec-paths starting with gnuwin32. this is obviously my problem now; however, I would appreciate it if you could help me out. > Also, what does this mean: > > -*- mode: grep; default-directory: "d:/.../" -*- > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^^^^^^^ > Could it be that this is the culprit? no, I am merely removing the long directory name from the pasted buffer con= tent. --=20 Sam Steingold From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 05 18:42:44 2011 Received: (at 7785) by debbugs.gnu.org; 5 Jan 2011 23:42:45 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pad08-0007MN-Cd for submit@debbugs.gnu.org; Wed, 05 Jan 2011 18:42:44 -0500 Received: from mail-ey0-f196.google.com ([209.85.215.196]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pad06-0007MC-IA for 7785@debbugs.gnu.org; Wed, 05 Jan 2011 18:42:43 -0500 Received: by eyd10 with SMTP id 10so1930827eyd.3 for <7785@debbugs.gnu.org>; Wed, 05 Jan 2011 15:49:55 -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; bh=CHfrvboE+wYerLHT7Vcb7m//PQf/fslkllAnC34E4WM=; b=SMir4XusoCL5KjZP8Spoz3hFdolHFJyV2b9ruH1NhiwmHMjYGOdQIFJGPyQusnNr5T 0ekNi0999yYTTVT7huzGwj8DH7Ev+NWIj9S2rDoZs0k4OadG8WwNhlGhb2XR47RUl1DI ubhQQ+RKQGHYcNfehBYKPGVWQ8N2mLXW9T07E= 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; b=nxIAPLgzQ8B5dQ3x4ttP+54ftBYEVsQzqkWkUQDeoTnOSQeCb2dUYzo2ADUo/hPfgm Zg7jOC7A54tbaKIGyCy5lRTPvcpoJ9C6etwSljd98Z3p/74UvWRPHc3iVip0odK9Jt6S iSDfriVPbmPu2xNb7hF0aINJz6e8aXliQDB3M= MIME-Version: 1.0 Received: by 10.14.126.141 with SMTP id b13mr691634eei.47.1294271394383; Wed, 05 Jan 2011 15:49:54 -0800 (PST) Received: by 10.14.127.207 with HTTP; Wed, 5 Jan 2011 15:49:54 -0800 (PST) In-Reply-To: References: <87d3oc17oo.fsf@telefonica.net> <83ipy3m4jv.fsf@gnu.org> Date: Wed, 5 Jan 2011 18:49:54 -0500 X-Google-Sender-Auth: XVyJudCwKF4Fp2Trq0R4tRw18vY Message-ID: Subject: Re: bug#7785: rgrep is broken on woe32 From: Sam Steingold To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: 7785 Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.0 (----) additional points of information: exec-path is not always used for subprocesses (http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7793) so I have to modify process-environment too: after fixing exec-path: (let ((tail process-environment)) (while tail (when (string-match "^PATH=" (car tail)) (setcar tail (concat "PATH=" (mapconcat (lambda (s) (subst-char-in-string ?/ ?\\ s)) exec-path ";"))) (setq tail nil)) ; done (setq tail (cdr tail)))) now: ========================================================== -*- mode: grep; default-directory: "c:/" -*- Grep started at Wed Jan 05 18:44:10 find . \( -path -o -path \*/attic -o -path \*/junk -o -path \*/SCCS -o -path \*/RCS -o -path \*/CVS -o -path \*/MCVS -o -path \*/.svn -o -path \*/.git -o -path \*/.hg -o -path \*/.bzr -o -path \*/_MTN -o -path \*/_darcs -o -path \*/\{arch\} \) -prune -o \( -name .\#\* -o -name \*.bc -o -name \*.exe -o -name \*.cmxa -o -name \*.cmx -o -name \*.cmo -o -name \*.cmi -o -name \*.cma -o -name \*.spit -o -name \*.spot -o -name \*.omc -o -name \*.data -o -name \*.old -o -name \*.tmp -o -name \*.annot -o -name \*.p -o -name \*.err -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 -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 -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 \*.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 ========================================================== the error message is obviously from gnu find, but I don't see what is wrong with the command line. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 05 18:45:48 2011 Received: (at 7785) by debbugs.gnu.org; 5 Jan 2011 23:45:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pad35-0007Qh-Qu for submit@debbugs.gnu.org; Wed, 05 Jan 2011 18:45:48 -0500 Received: from mail-ew0-f68.google.com ([209.85.215.68]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pad34-0007QT-BE for 7785@debbugs.gnu.org; Wed, 05 Jan 2011 18:45:46 -0500 Received: by ewy3 with SMTP id 3so2107421ewy.3 for <7785@debbugs.gnu.org>; Wed, 05 Jan 2011 15:52:58 -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=RHE4yEceHGvFe0shNjubqIzMieIjT/VyqX7FtNrJnwA=; b=ng314hosygSAwpTQloUrTQxIT+X7ImDLtpkBMC7MdP3sTeU5akBawFmAUowB64zdRL qNKe0tRzyD+DohbGbbZSXNKYQkYQWV6AfRAGhFuqJFfdWTA6BOM4uUtC74Ee3S2YP9sK G1cBripODJayuRHrTDlB6x8CvNfg09GsQEeBk= 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=vOTgR+FnvkWI6sB99UtKIiAZXYEo5OaJZjloR+KalySQFrAOT8lpd5C7Me8lcgnZIb ReXU6HUdkodIjcKjUnZZiVfgoeymSmMdRgOnwbik/Siyj/DlF1a2UFffF+YwL3Xb7eCy Fu9P21dFhhGDc72j48TolvbQ69Wy87Q407CyE= MIME-Version: 1.0 Received: by 10.14.126.141 with SMTP id b13mr692750eei.47.1294271577784; Wed, 05 Jan 2011 15:52:57 -0800 (PST) Received: by 10.14.127.207 with HTTP; Wed, 5 Jan 2011 15:52:57 -0800 (PST) In-Reply-To: References: <87d3oc17oo.fsf@telefonica.net> <83ipy3m4jv.fsf@gnu.org> Date: Wed, 5 Jan 2011 18:52:57 -0500 X-Google-Sender-Auth: i6txumjI9myEI1wsdU13cwejaJY Message-ID: Subject: Re: bug#7785: rgrep is broken on woe32 From: Sam Steingold To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: 7785 Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.0 (----) T24gV2VkLCBKYW4gNSwgMjAxMSBhdCA2OjQ5IFBNLCBTYW0gU3RlaW5nb2xkIDxzZHNAZ251Lm9y Zz4gd3JvdGU6Cj4KPiDCoChsZXQgKCh0YWlsIHByb2Nlc3MtZW52aXJvbm1lbnQpKQo+IMKgIMKg KHdoaWxlIHRhaWwKPiDCoCDCoCDCoCh3aGVuIChzdHJpbmctbWF0Y2ggIl5QQVRIPSIgKGNhciB0 YWlsKSkKPiDCoCDCoCDCoCDCoChzZXRjYXIgdGFpbCAoY29uY2F0ICJQQVRIPSIKPiDCoCDCoCDC oCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCAobWFwY29uY2F0IChsYW1iZGEgKHMp Cj4gwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAg wqAgwqAgwqAoc3Vic3QtY2hhci1pbi1zdHJpbmcgPy8gP1xcIHMpKQo+IMKgIMKgIMKgIMKgIMKg IMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgZXhlYy1wYXRoICI7 IikpKQo+IMKgIMKgIMKgIMKgKHNldHEgdGFpbCBuaWwpKSDCoCDCoCDCoCDCoDsgZG9uZQo+IMKg IMKgIMKgKHNldHEgdGFpbCAoY2RyIHRhaWwpKSkpCgpyZXBsYWNlZCB3aXRoCiAgKHNldGVudiAi UEFUSCIKICAgICAgICAgIChtYXBjb25jYXQgKGxhbWJkYSAocykgKHN1YnN0LWNoYXItaW4tc3Ry aW5nID8vID9cXCBzKSkKICAgICAgICAgICAgICAgICAgICAgZXhlYy1wYXRoICI7IikpCgpzYW1l IGVycm9yOgoKPiBmaW5kOiBwYXRocyBtdXN0IHByZWNlZGUgZXhwcmVzc2lvbgo+IFVzYWdlOiBm aW5kIFstSF0gWy1MXSBbLVBdIFtwYXRoLi4uXSBbZXhwcmVzc2lvbl0KCi0tIApTYW0gU3RlaW5n b2xkIDxodHRwOi8vc2RzLnBvZHZhbC5vcmc+Cg== From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 06 04:25:23 2011 Received: (at 7785) by debbugs.gnu.org; 6 Jan 2011 09:25:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pam5y-0003ZF-QP for submit@debbugs.gnu.org; Thu, 06 Jan 2011 04:25:23 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pam5x-0003Z4-Al for 7785@debbugs.gnu.org; Thu, 06 Jan 2011 04:25:21 -0500 Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1PamCt-0006Jl-BX; Thu, 06 Jan 2011 04:32:31 -0500 From: Eli Zaretskii To: Sam Steingold In-reply-to: (message from Sam Steingold on Wed, 5 Jan 2011 17:45:42 -0500) Subject: Re: bug#7785: rgrep is broken on woe32 References: <87d3oc17oo.fsf@telefonica.net> <83ipy3m4jv.fsf@gnu.org> Message-Id: Date: Thu, 06 Jan 2011 04:32:31 -0500 X-Spam-Score: -6.5 (------) X-Debbugs-Envelope-To: 7785 Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) > Date: Wed, 5 Jan 2011 17:45:42 -0500 > From: Sam Steingold > Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org > > this works just fine, like on linux: > PATH=/cygdrive/c/gnu/gnuwin32/bin:$PATH emacs -q > > moreover, > emacs -q > and moving gnuwin dir to the beginning of exec-path with > (let ((gw "c:/gnu/gnuwin32/bin")) > (setq exec-path (cons gw (delete gw exec-path)))) > also works fine. > > however, without "-q" I get various errors, mostly > "FIND: Parameter format not correct" > despite exec-paths starting with gnuwin32. > this is obviously my problem now; however, I would appreciate it if > you could help me out. If this is still relevant (i.e. you still don't know which of your customizations break what works with "emacs -q"), then can you bisect your .emacs to see the reason? or post here the whole file? From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 06 05:17:47 2011 Received: (at 7785) by debbugs.gnu.org; 6 Jan 2011 10:17:47 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pamuh-0004fz-G9 for submit@debbugs.gnu.org; Thu, 06 Jan 2011 05:17:47 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pamuf-0004fo-N8 for 7785@debbugs.gnu.org; Thu, 06 Jan 2011 05:17:46 -0500 Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1Pan1b-0000ps-Fm; Thu, 06 Jan 2011 05:24:55 -0500 From: Eli Zaretskii To: Sam Steingold In-reply-to: (message from Sam Steingold on Wed, 5 Jan 2011 18:49:54 -0500) Subject: Re: bug#7785: rgrep is broken on woe32 References: <87d3oc17oo.fsf@telefonica.net> <83ipy3m4jv.fsf@gnu.org> Message-Id: Date: Thu, 06 Jan 2011 05:24:55 -0500 X-Spam-Score: -6.5 (------) X-Debbugs-Envelope-To: 7785 Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) > 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. I wrote in bug#7793 why. > \( -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 > ========================================================== > > 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? Also, you said just a couple of messages ago, that rgrep did work for you in "emacs -q". So is the only difference between that and this whatever you have on your .emacs? Or am I missing something else? There's something else I don't understand. The style of shell quoting you show, viz. find . \( -path -o -path \*/attic -o -path \*/junk -o -path \*/SCCS -o -path \*/RCS -o -path \*/CVS -o -path \*/MCVS -o -path \*/.svn -o -path \*/.git -o -path \*/.hg -o -path \*/.bzr -o -path \*/_MTN -o is different from what I see on my Windows box: find . "(" -path -o -path "*/attic" -o -path "*/junk" -o -path "*/SCCS" -o -path "*/RCS" -o -path "*/CVS" -o -path "*/MCVS" -o -path "*/.svn" -o -path "*/.git" -o -path "*/.hg" -o -path "*/.bzr" -o -path "*/_MTN" -o That is, Emacs is supposed to use double quotes on Windows, because Windows programs (except Cygwin) don't understand quoting with a backslash. Do you see the former style of quoting in "emacs -Q" as well? From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 06 07:02:04 2011 Received: (at 7785) by debbugs.gnu.org; 6 Jan 2011 12:02:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaoXc-0006uw-6y for submit@debbugs.gnu.org; Thu, 06 Jan 2011 07:02:04 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaoXZ-0006uP-A9; Thu, 06 Jan 2011 07:02:01 -0500 Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1PaoeU-0001fV-Rz; Thu, 06 Jan 2011 07:09:10 -0500 From: Eli Zaretskii To: Sam Steingold In-reply-to: (message from Sam Steingold on Wed, 5 Jan 2011 17:43:15 -0500) Subject: Re: bug#7785: rgrep is broken on woe32 References: <87d3oc17oo.fsf@telefonica.net> <87k4ijxeh2.fsf@wanadoo.es> <874o9nx9vx.fsf@wanadoo.es> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-Id: Date: Thu, 06 Jan 2011 07:09:10 -0500 X-Spam-Score: -6.5 (------) X-Debbugs-Envelope-To: 7785 Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org, 6784@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) > X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, > RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_DKIM_INVALID autolearn=ham version=3.3.1 > Date: Wed, 5 Jan 2011 17:43:15 -0500 > From: Sam Steingold > Cc: Eli Zaretskii , 7785@debbugs.gnu.org > > On Wed, Jan 5, 2011 at 5:29 PM, Óscar Fuentes wrote: > > > > Maybe it is related to this: > > > > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6784 > > > > definitely. is that bug going to be fixed? The discussions in that bug report concluded that the program file name after the pipe needs to be quoted, in order for it to work with file names that use forward- and back-slashes alike. I can solve that problem for rgrep (and for other similar commands) by tweaking the templates used by grep.el, so as to quote the %s after the pipe character `|'. Would that be an okay solution? The other alternative I thought about, to fix this inside cmdproxy, has a disadvantage that the command semantics cannot be easily determined at such a low level. The first word after the `|' might not always be a name of an executable file, or it could already be quoted in some ingenious ways, or it might be a part of a quoted pipe that is intended to survive unaltered, to be passed to some other program and not executed as a shell pipeline. Even if we teach cmdproxy about all of these use-cases and write/debug code to handle each and every one of them, we will certainly miss some. We will also force this quoting on commands typed interactively, so users lose the fire escape they can use now to quote or not to quote. As a general principle, I believe that the level which conses the command line is where such decision should be made, because that level surely knows the context, and knows _exactly_ where are the parts that need quoting. The disadvantage is, of course, that similar solutions will have to be implemented for each Emacs command that launches a shell pipeline. But I don't believe there are many of those. Comments? From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 06 10:10:07 2011 Received: (at 7785) by debbugs.gnu.org; 6 Jan 2011 15:10:07 +0000 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 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 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= MIME-Version: 1.0 Received: by 10.14.126.141 with SMTP id b13mr1092697eei.47.1294327037936; Thu, 06 Jan 2011 07:17:17 -0800 (PST) Received: by 10.14.127.207 with HTTP; Thu, 6 Jan 2011 07:17:17 -0800 (PST) In-Reply-To: References: <87d3oc17oo.fsf@telefonica.net> <83ipy3m4jv.fsf@gnu.org> Date: Thu, 6 Jan 2011 10:17:17 -0500 X-Google-Sender-Auth: zmLSOcaD6pUx6GSS6z_M8dTDlCY Message-ID: Subject: Re: bug#7785: rgrep is broken on woe32 From: Sam Steingold To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.9 (---) X-Debbugs-Envelope-To: 7785 Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.9 (---) 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 06 10:18:31 2011 Received: (at 7785) by debbugs.gnu.org; 6 Jan 2011 15:18:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Parbi-0003Wp-QT for submit@debbugs.gnu.org; Thu, 06 Jan 2011 10:18:31 -0500 Received: from mail-ew0-f44.google.com ([209.85.215.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Parbg-0003WR-7W; Thu, 06 Jan 2011 10:18:28 -0500 Received: by ewy8 with SMTP id 8so7756649ewy.3 for ; Thu, 06 Jan 2011 07:25:42 -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=mFT9pGqIW7LhT5xGOc3YdZpD/QKqRGfyUJLNWKuhW4Y=; b=Gz2ymIlNoWHj61Pano5qUZuW9w38T/lg6ZNBuHbw1SSDh+Gx8MojeP2ReNBX4thR9M 0Ay2LgrYbUiylVCTY3k6Ew9zEb10hIUsUezfsBetHLfwjZlxPpPUDnitsN6uvXXL8rlZ 4zgwOloCGUjaypLAMrWXJYCBV7WEq38yuM830= 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=itEEFOD15rP+t4N1ZMe+KdewRoG8hpHnVyk6+MUJV2MU90fxxPj04nvSW4z0Ld0Poh UCEeQ6kRijgV4S0Fz8/elZERDTt3PY4Z5khqlmiJe2XI9rMrlUDmI7TAYQoQPGG3fjd1 ngnRPwPgmHPURQpU9OaerjNRdGZTdhFlKOgDM= MIME-Version: 1.0 Received: by 10.14.126.141 with SMTP id b13mr1097092eei.47.1294327542210; Thu, 06 Jan 2011 07:25:42 -0800 (PST) Received: by 10.14.127.207 with HTTP; Thu, 6 Jan 2011 07:25:42 -0800 (PST) In-Reply-To: References: <87d3oc17oo.fsf@telefonica.net> <87k4ijxeh2.fsf@wanadoo.es> <874o9nx9vx.fsf@wanadoo.es> Date: Thu, 6 Jan 2011 10:25:42 -0500 X-Google-Sender-Auth: 9Dbif_tGi1nc4JlksJXHYTtlff0 Message-ID: Subject: Re: bug#7785: rgrep is broken on woe32 From: Sam Steingold To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.9 (---) X-Debbugs-Envelope-To: 7785 Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org, 6784@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.9 (---) On Thu, Jan 6, 2011 at 7:09 AM, Eli Zaretskii wrote: >> Date: Wed, 5 Jan 2011 17:43:15 -0500 >> From: Sam Steingold >> Cc: Eli Zaretskii , 7785@debbugs.gnu.org >> >> On Wed, Jan 5, 2011 at 5:29 PM, =C3=93scar Fuentes wrot= e: >> > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D6784 >> definitely. is that bug going to be fixed? > ... Would that be an okay solution? any solution which fixes my problem is OK :-) > Comments? the problems you describe seem to boil down to re-implementing cmd in cmdpr= oxy. this begs the question, why does emacs have to provide cmdproxy? why not use cmd provided by windows? --=20 Sam Steingold From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 06 10:39:47 2011 Received: (at 7785) by debbugs.gnu.org; 6 Jan 2011 15:39:47 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ParwI-0004GN-WC for submit@debbugs.gnu.org; Thu, 06 Jan 2011 10:39:47 -0500 Received: from mail-ew0-f68.google.com ([209.85.215.68]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ParwG-0004G3-O6 for 7785@debbugs.gnu.org; Thu, 06 Jan 2011 10:39:45 -0500 Received: by ewy3 with SMTP id 3so2172057ewy.3 for <7785@debbugs.gnu.org>; Thu, 06 Jan 2011 07:46:58 -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=0YXANTuTq8qmrld1IK/9KGSrgFXdZS1Top3I+1c+aTI=; b=VmjdzbT/iioVXg5HRK5AXVB5qUPWkOl4aWmGRwCD7cRGTTH6EahMP3TDd85Qv5qQ88 KhZ3txKBFShe4RYK7hujiGFgF4RaiYSTY/LnAT74ZTekqAWpJ4UhZVseRxAXQ1PUtqRr sxU2yoh6QMasmLsj2fPbCu7lIQoW2Y8uYK/SI= 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=OZxd/Gc45PKa6mE+eh6dGqtPTebwTtYdltmH3lACTXtD5x9pR3Meoj6ZSw6JWBCnBJ bUyyjgEj9AjqrAXbG7j3K5GIHALAmvoLre5TP5Gm3I4Y/kgQwLCifLurvmg9sAd555+r DuUTHSh7zQJ5kvnoXwA823VRjqCGdzwNh9c2Y= MIME-Version: 1.0 Received: by 10.14.47.71 with SMTP id s47mr248027eeb.40.1294328818486; Thu, 06 Jan 2011 07:46:58 -0800 (PST) Received: by 10.14.127.207 with HTTP; Thu, 6 Jan 2011 07:46:58 -0800 (PST) In-Reply-To: References: <87d3oc17oo.fsf@telefonica.net> <83ipy3m4jv.fsf@gnu.org> Date: Thu, 6 Jan 2011 10:46:58 -0500 X-Google-Sender-Auth: POETX6UhA1-fnd8m4D4NqGHVgUc Message-ID: Subject: Re: bug#7785: rgrep is broken on woe32 From: Sam Steingold To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.9 (---) X-Debbugs-Envelope-To: 7785 Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.9 (---) On Thu, Jan 6, 2011 at 10:17 AM, Sam Steingold wrote: > 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 w= hy. > > 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... > > 1. "emacs -Q" started from bash shell: > broken... > 2. emacs started from cygwin bash shell, the only thing in .emacs: > broken... > 3. emacs started with the above .emacs from the desktop shortcut > broken... > 4. emacs started from desktop with my full huge .emacs but without PATH t= weaking > broken.... > 5. same as 4 but without setting find-program et al > broken.... > 6. emacs started from desktop with my full huge .emacs with PATH > tweaking without setting find-program et al: > broken.... > 7. emacs -Q started from desktop: > broken 8. emacs -Q started from desktop with gnuwin put as the first element of PATH globally: (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" find . "(" -path "*/SCCS" -o -path "*/RCS"...-o -name "*.pyo" ")" -prune -o -type f "(" -iname "*" -o -iname ".*" ")" -print0 | xargs -0 -e grep -i -nH "asdf" xargs: grep: No such file or directory ./src/clisp/current/src/ChangeLog:29: * modules/asdf/asdf.lisp: update to upstream "2.011" ./src/clisp/current/src/ChangeLog:512: bundle ASDF2 as a module ./src/clisp/current/src/ChangeLog:513: * Makefile.devel (update-asdf): new .PHONY target ./src/clisp/current/src/ChangeLog:515: * modules/asdf: add (based on asdf 2= .008) ./src/clisp/current/src/ChangeLog:516: * makemake.in, unix/INSTALL: mention asdf in the docs ./src/clisp/current/src/ChangeLog:590: (require): use the above, now one can hook asdf into clisp grep: ./src/clisp/c: No such file or directory find: write error: Invalid argument sort of works, except these bugs in output: 1. "xargs: grep: No such file or directory" 2. "grep: ./src/clisp/c: No such file or directory" 3. "find: write error: Invalid argument" 9. same as above but without "-Q": find . \( -path -o -path \*/attic ...-o -type f \( -iname \*.\[cdfh\] -o -iname \*.lisp -o -iname \*.tst -o -iname \*.m4 -o -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] --=20 Sam Steingold From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 06 10:55:20 2011 Received: (at 7785) by debbugs.gnu.org; 6 Jan 2011 15:55:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PasBM-0004oU-FB for submit@debbugs.gnu.org; Thu, 06 Jan 2011 10:55:20 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PasBK-0004oC-Ce for 7785@debbugs.gnu.org; Thu, 06 Jan 2011 10:55:19 -0500 Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1PasIG-0004qw-RE; Thu, 06 Jan 2011 11:02:28 -0500 From: Eli Zaretskii To: Sam Steingold In-reply-to: (message from Sam Steingold on Thu, 6 Jan 2011 10:17:17 -0500) Subject: Re: bug#7785: rgrep is broken on woe32 References: <87d3oc17oo.fsf@telefonica.net> <83ipy3m4jv.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-Id: Date: Thu, 06 Jan 2011 11:02:28 -0500 X-Spam-Score: -6.5 (------) X-Debbugs-Envelope-To: 7785 Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) > Date: Thu, 6 Jan 2011 10:17:17 -0500 > From: Sam Steingold > Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org > > > I suggest to fix PATH outside Emacs instead.  I wrote in bug#7793 why. > > is it safe to prepend gnuwin path before the system windows paths > globally for all programs? Yes, in my experience. > my toolchain is not limited to the gnu world, I am afraid of breaking, > e.g., ms visual studio... I have VS installed on one of my machines that I use daily, and I have yet to see even a single problem. In general, programs that come with VS don't include namesakes of GNU tools. > > Also, you said just a couple of messages ago, that rgrep did work for > > you in "emacs -q".  So is the only difference between that and this > > whatever you have on your .emacs?  Or am I missing something else? > > 1. "emacs -Q" started from bash shell: It looks like now nothing works, is that right? Then what was this about: > this works just fine, like on linux: > PATH=/cygdrive/c/gnu/gnuwin32/bin:$PATH emacs -q > > moreover, > emacs -q > and moving gnuwin dir to the beginning of exec-path with > (let ((gw "c:/gnu/gnuwin32/bin")) > (setq exec-path (cons gw (delete gw exec-path)))) > also works fine. ? What is different between these 2 "working" instances and what you tried now? > (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\\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" > > 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. Does this problem go away if you set grep-use-null-device to "/dev/null"? You could also customize null-device, if you always use the Cygwin shell. > 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. I suspect that the shell picks up xargs from Cygwin or something. Could you try forcing it to use the GnuWin32 binary, or at least verifying that a GnuWin32 binaries of all the 3 programs get invoked? > 4. emacs started from desktop with my full huge .emacs but without PATH tweaking > > (getenv "PATH") > "C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\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:/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. This is because "c:/gnu/gnuwin32/bin/xargs", which is after the pipe symbol, is not quoted. So this is something I do understand. > 5. same as 4 but without setting find-program et al > FIND: Parameter format not correct Also, understood: it picks find.exe from C:/WINDOWS/system32, which is first on PATH. > 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\\System32\\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] This somehow uses the wrong quoting style. Can you look into shell-quote-argument and see why? > 7. emacs -Q started from desktop: > > (getenv "PATH") > "C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\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" > > 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 Again, the MS find.exe, because of PATH. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 06 10:57:27 2011 Received: (at 7785) by debbugs.gnu.org; 6 Jan 2011 15:57:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PasDO-0004tB-Um for submit@debbugs.gnu.org; Thu, 06 Jan 2011 10:57:27 -0500 Received: from mail-ew0-f68.google.com ([209.85.215.68]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PasDM-0004sr-SO for 7785@debbugs.gnu.org; Thu, 06 Jan 2011 10:57:25 -0500 Received: by ewy3 with SMTP id 3so2173791ewy.3 for <7785@debbugs.gnu.org>; Thu, 06 Jan 2011 08:04:39 -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=GHLQ1ANWYUcwZMywoHfyaoAqwUWk9ArtQOiuA3N6L7E=; b=q0EzRZLBFYSevxK4QWW9HsndhjcQ1vLgnUcGyI2Q2L4c/3pfrJkm5L/jl4NVGnsCP8 xnqV0uGoDb/hgqkPA45xl6pe+ihY6wC+Rsto91lt2D+bZ9adeUDIQVanmfgkVxR+K0sU VnJnuFsuW9NRD35rk00LtWLAwWYuhyhoQeyas= 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=eeQH+WkTj3i7GSodbkJfPWverZBLmd7UhUianWEdVNxdm813haUCHFV0dv6PEYva1u aZAZkYTJ+F7S8+sE79QsWlNpzDBHoKc8XdZPtADjeavALZz7b8GeMIx8ne73sokB1wtR xMtm5LrRQNL4UgmfcVzWTKbXeFEg8o02lbYqc= MIME-Version: 1.0 Received: by 10.14.126.141 with SMTP id b13mr1118801eei.47.1294329878760; Thu, 06 Jan 2011 08:04:38 -0800 (PST) Received: by 10.14.127.207 with HTTP; Thu, 6 Jan 2011 08:04:38 -0800 (PST) In-Reply-To: References: <87d3oc17oo.fsf@telefonica.net> <83ipy3m4jv.fsf@gnu.org> Date: Thu, 6 Jan 2011 11:04:38 -0500 X-Google-Sender-Auth: eGOPRxqZIevYny1KtyZ3ZmsB-Vo Message-ID: Subject: Re: bug#7785: rgrep is broken on woe32 From: Sam Steingold To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.9 (---) X-Debbugs-Envelope-To: 7785 Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.9 (---) On Thu, Jan 6, 2011 at 5:24 AM, Eli Zaretskii wrote: > > There's something else I don't understand. =C2=A0The style of shell quoti= ng > you show, viz. > > =C2=A0find . \( -path =C2=A0-o -path \*/attic -o -path \*/junk -o -path \= */SCCS > =C2=A0-o -path \*/RCS -o -path \*/CVS -o -path \*/MCVS -o -path \*/.svn -= o > =C2=A0-path \*/.git -o -path \*/.hg -o -path \*/.bzr -o -path \*/_MTN -o > > is different from what I see on my Windows box: > > =C2=A0find . "(" -path =C2=A0-o -path "*/attic" -o -path "*/junk" -o -pat= h "*/SCCS" > =C2=A0-o -path "*/RCS" -o -path "*/CVS" -o -path "*/MCVS" -o -path "*/.sv= n" -o > =C2=A0-path "*/.git" -o -path "*/.hg" -o -path "*/.bzr" -o -path "*/_MTN"= -o > > That is, Emacs is supposed to use double quotes on Windows, because > Windows programs (except Cygwin) don't understand quoting with a > backslash. =C2=A0Do you see the former style of quoting in "emacs -Q" as > well? the problem is with w32-fns.el. I set explicit-shell-file-name to "bash" because whenever I start an explicit interactive shell, I want it to be bash and not the windows crap. however, this has nothing to do with the shell used to interpret individual commands like M-! and M-x rgrep. specifically, since explicit-shell-file-name is "bash", w32-shell-name returns "bash" and thus w32-shell-dos-semantics returns nil and shell-quote-argument thus uses backslashes. I think this is wrong. I propose this patch: =3D=3D=3D modified file 'lisp/w32-fns.el' --- lisp/w32-fns.el 2010-10-24 22:04:45 +0000 +++ lisp/w32-fns.el 2011-01-06 15:58:02 +0000 @@ -57,7 +57,7 @@ That includes all Windows systems except (defun w32-shell-name () "Return the name of the shell being used." - (or (bound-and-true-p explicit-shell-file-name) + (or (bound-and-true-p shell-file-name) (getenv "ESHELL") (getenv "SHELL") (and (w32-using-nt) "cmd.exe") is it OK to commit? with this patch and my full .emacs with PATH tweaking and without find-program setting: find . "(" -path -o ... -type f "(" -iname "*.[cdfh]" -o -iname "*.lisp" -o -iname "*.tst" -o -iname "*.m4" -o -iname "*.in" -o -iname "Makefile*" -o -iname "*.xml" ")" -print0 | xargs -0 -e grep -i -nH "asdf" xargs: grep: No such file or directory i.e., it still does not work, despite: (getenv "PATH") "c:\\gnu\\gnuwin32\\bin;c:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\Syst= em32\\Wbem;c:\\gnu\\cygwin\\bin;d:\\bin;C:\\gnu\\clisp-2.49;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files (x86)\\TortoiseHg\\;C:\\Program Files (x86)\\Bazaar;C:\\gnu\\GnuTLS-2.10.1\\bin;c:\\sds\\src\\emacs\\trunk\\bin" (executable-find "grep") "c:/gnu/gnuwin32/bin/grep.exe" and M-! grep RET working. --=20 Sam Steingold From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 06 11:00:04 2011 Received: (at 7785) by debbugs.gnu.org; 6 Jan 2011 16:00:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PasFw-0004zZ-96 for submit@debbugs.gnu.org; Thu, 06 Jan 2011 11:00:04 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PasFu-0004ya-Iq; Thu, 06 Jan 2011 11:00:02 -0500 Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1PasMr-000525-Rz; Thu, 06 Jan 2011 11:07:13 -0500 From: Eli Zaretskii To: Sam Steingold In-reply-to: (message from Sam Steingold on Thu, 6 Jan 2011 10:25:42 -0500) Subject: Re: bug#7785: rgrep is broken on woe32 References: <87d3oc17oo.fsf@telefonica.net> <87k4ijxeh2.fsf@wanadoo.es> <874o9nx9vx.fsf@wanadoo.es> Message-Id: Date: Thu, 06 Jan 2011 11:07:13 -0500 X-Spam-Score: -6.5 (------) X-Debbugs-Envelope-To: 7785 Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org, 6784@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) > Date: Thu, 6 Jan 2011 10:25:42 -0500 > From: Sam Steingold > Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org, 6784@debbugs.gnu.org > > the problems you describe seem to boil down to re-implementing cmd in cmdproxy. > this begs the question, why does emacs have to provide cmdproxy? > why not use cmd provided by windows? cmdproxy does not reimplement cmd. It is really just a proxy to cmd, designed to fix a few idiosyncrasies, and that's it. When cmdproxy concludes that a shell is needed, it invokes cmd (or some other shell). This part of the commentary at the beginning of cmdproxy.c should tell the story: Accepts subset of Unix sh(1) command-line options, for compatibility with elisp code written for Unix. When possible, executes external programs directly (a common use of /bin/sh by Emacs), otherwise invokes the user-specified command processor to handle built-in shell commands, batch files and interactive mode. The main function is simply to process the "-c string" option in the way /bin/sh does, since the standard Windows command shells use the convention that everything after "/c" (the Windows equivalent of "-c") is the input string. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 06 11:13:20 2011 Received: (at 7785) by debbugs.gnu.org; 6 Jan 2011 16:13:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PasSl-0005SZ-Rg for submit@debbugs.gnu.org; Thu, 06 Jan 2011 11:13:20 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PasSj-0005SG-HY for 7785@debbugs.gnu.org; Thu, 06 Jan 2011 11:13:18 -0500 Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1PasZf-0005uU-Tl; Thu, 06 Jan 2011 11:20:27 -0500 From: Eli Zaretskii To: Sam Steingold In-reply-to: (message from Sam Steingold on Thu, 6 Jan 2011 10:46:58 -0500) Subject: Re: bug#7785: rgrep is broken on woe32 References: <87d3oc17oo.fsf@telefonica.net> <83ipy3m4jv.fsf@gnu.org> Message-Id: Date: Thu, 06 Jan 2011 11:20:27 -0500 X-Spam-Score: -6.5 (------) X-Debbugs-Envelope-To: 7785 Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) > Date: Thu, 6 Jan 2011 10:46:58 -0500 > From: Sam Steingold > Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org > > of PATH globally: > > (getenv "PATH") > "c:\\gnu\\gnuwin32\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\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" > > find . "(" -path "*/SCCS" -o -path "*/RCS"...-o -name "*.pyo" ")" > -prune -o -type f "(" -iname "*" -o -iname ".*" ")" -print0 | xargs > -0 -e grep -i -nH "asdf" > xargs: grep: No such file or directory > ./src/clisp/current/src/ChangeLog:29: * modules/asdf/asdf.lisp: update > to upstream "2.011" > ./src/clisp/current/src/ChangeLog:512: bundle ASDF2 as a module > ./src/clisp/current/src/ChangeLog:513: * Makefile.devel (update-asdf): > new .PHONY target > ./src/clisp/current/src/ChangeLog:515: * modules/asdf: add (based on asdf 2.008) > ./src/clisp/current/src/ChangeLog:516: * makemake.in, unix/INSTALL: > mention asdf in the docs > ./src/clisp/current/src/ChangeLog:590: (require): use the above, now > one can hook asdf into clisp > grep: ./src/clisp/c: No such file or directory > find: write error: Invalid argument Does this command work from the Windows shell, if you tweak PATH to have the gnuwin32 directory be at the beginning? > sort of works, except these bugs in output: > 1. "xargs: grep: No such file or directory" > 2. "grep: ./src/clisp/c: No such file or directory" > 3. "find: write error: Invalid argument" The last one is simply a consequence of the fact that xargs exits prematurely (due to the other errors) and the pipe is closed on the reader side, which makes the writer (find) unhappy. But the other 2 errors are puzzling... From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 06 11:43:54 2011 Received: (at 7785) by debbugs.gnu.org; 6 Jan 2011 16:43:54 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaswM-0006ZL-6q for submit@debbugs.gnu.org; Thu, 06 Jan 2011 11:43:54 -0500 Received: from mail-ey0-f196.google.com ([209.85.215.196]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaswJ-0006Z1-Im for 7785@debbugs.gnu.org; Thu, 06 Jan 2011 11:43:52 -0500 Received: by eyd10 with SMTP id 10so1992636eyd.3 for <7785@debbugs.gnu.org>; Thu, 06 Jan 2011 08:51:05 -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=PqdEbVZtm7cr+xtdXsRs+QyxknGfSexofzFOW1EMkhA=; b=AEN1b1tv7JSQEvGYSxbYkjz8nwA+sqKUs0yCX8x2v6di1/yrU/2vFumMG9VqG87S50 s+gHDEYookFEbHQzm3pthaTn7B1ANWrzqBdbWsU9Idl43Vkbhun/Cg1htRiYBpt7ajWZ Gm44KvwEPZyV0yptg3yNlamPe34Vm7rbEetV0= 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=CUG2vYMbTEABoJ1uVU7Si+cAf8mYDdZbWQOIOvdaQWp+6nM6ezrDw3hUp01d4AWA7t o/R8w5JcR9pW96u65oIqtpKQwDNiy4yeDUHuTjp2b/x5/5yiIHfYpeUxZjpap/OumOnA PBoQiUx8xcnqPumyBvk4I5V1tCIOhR+DTwVH0= MIME-Version: 1.0 Received: by 10.213.98.70 with SMTP id p6mr636262ebn.53.1294332665484; Thu, 06 Jan 2011 08:51:05 -0800 (PST) Received: by 10.14.127.207 with HTTP; Thu, 6 Jan 2011 08:51:05 -0800 (PST) In-Reply-To: References: <87d3oc17oo.fsf@telefonica.net> <83ipy3m4jv.fsf@gnu.org> Date: Thu, 6 Jan 2011 11:51:05 -0500 X-Google-Sender-Auth: ysMLoXe-HKdik35HuO_ZiktrLWc Message-ID: Subject: Re: bug#7785: rgrep is broken on woe32 From: Sam Steingold To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.9 (---) X-Debbugs-Envelope-To: 7785 Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.9 (---) thanks for the explanations. On Thu, Jan 6, 2011 at 11:02 AM, Eli Zaretskii wrote: >> Date: Thu, 6 Jan 2011 10:17:17 -0500 >> From: Sam Steingold >> Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org >> >> > I suggest to fix PATH outside Emacs instead. =C2=A0I wrote in bug#7793= why. >> >> is it safe to prepend gnuwin path before the system windows paths >> globally for all programs? > > Yes, in my experience. thanks, I will keep that in mind. I will not do that for now since so far my tweaking of exec-path + setenv seems to produce the same results. however, I will keep in mind both your deprecation of this practice and your experience above and will follow your suggestion if my method breaks. thanks. > It looks like now nothing works, is that right? =C2=A0Then what was this > about: > >> this works just fine, like on linux: >> PATH=3D/cygdrive/c/gnu/gnuwin32/bin:$PATH emacs -q >> >> moreover, >> emacs -q >> and moving gnuwin dir to the beginning of exec-path with >> (let ((gw "c:/gnu/gnuwin32/bin")) >> =C2=A0 (setq exec-path (cons gw (delete gw exec-path)))) >> also works fine. > > ? =C2=A0What is different between these 2 "working" instances and what yo= u > tried now? OOPS. these no longer work. both produce this: -*- mode: grep; default-directory: "~/" -*- Grep started at Thu Jan 06 11:45:35 find . "(" -path "*/SCCS" -o -path "*/RCS"/..... -o -name "*.pyo" ")" -prune -o -type f "(" -iname "*" -o -iname ".*" ")" -print0 | xargs -0 -e grep -i -nH "exec-path" xargs: grep: No such file or directory grep: ./src/clisp/c: No such file or directory find: write error: Invalid argument Grep finished (matches found) at Thu Jan 06 11:45:37 I am totally lost... > I suspect that the shell picks up xargs from Cygwin or something. > Could you try forcing it to use the GnuWin32 binary, or at least > verifying that a GnuWin32 binaries of all the 3 programs get invoked? all 3 programs live in the same dir, whether gnuwin or cygwin. I don't see how they can come from different places. >> 4. emacs started from desktop with my full huge .emacs but without PATH = tweaking >> 'c:' is not recognized as an internal or external command, >> operable program or batch file. > > This is because "c:/gnu/gnuwin32/bin/xargs", which is after the pipe > symbol, is not quoted. =C2=A0So this is something I do understand. yes, that other cmdproxy issue - any change it will be addressed any time s= oon? >> FIND: Parameter format not correct > Also, understood: it picks find.exe from C:/WINDOWS/system32, which is > first on PATH. sure. I omitted all the other details because this one was obvious :-) >> 6. emacs started from desktop with my full huge .emacs with PATH >> tweaking without setting find-program et al: >> find . \( -path =C2=A0-o -path \*/attic -o -path .....-iname \*.in -o >> find: paths must precede expression > > This somehow uses the wrong quoting style. =C2=A0Can you look into > shell-quote-argument and see why? I sent you the patch in another message in this bug. thanks again for your time and compassion... --=20 Sam Steingold From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 06 12:02:05 2011 Received: (at 7785) by debbugs.gnu.org; 6 Jan 2011 17:02:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PatDx-0006y3-IS for submit@debbugs.gnu.org; Thu, 06 Jan 2011 12:02:05 -0500 Received: from mail-ew0-f44.google.com ([209.85.215.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PatDq-0006xq-2A for 7785@debbugs.gnu.org; Thu, 06 Jan 2011 12:01:59 -0500 Received: by ewy8 with SMTP id 8so7826705ewy.3 for <7785@debbugs.gnu.org>; Thu, 06 Jan 2011 09:09:12 -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=lG6Nv4eAIF9lpdS30ZYjw2BcquqS8MpqoS+AKmQ9llY=; b=xu/s8YtFj4izKK180qUhRm7/qRH7BHraf27vDXYf9XqskzwVgKTYElWk1lmN5JHgX3 msCOOoSQQkQ2P4aVd9L5JmO1NzYqaJLrfE0NynOS22dTAQ2/Phd3Im9Nrv0yviXhmCp1 sdz/70nMmUckZCCUNRjfRvQafooAqTeLInGXo= 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=rJlho7GFbf8djFQ818/NWccIcwU+zn2lktfzPE2yt8LAPa0PJHSSt+gsSgUvOrluuT GhVeP1sHaSWWi3H6g7ajAq//Dio8ZqM6ncqlBLxKbUS1frnxrJjrszlIPbDcgwRCm8cM MIuslSdRQcetqzUVq3u6N52lUB5VPXeaai1y4= MIME-Version: 1.0 Received: by 10.14.29.69 with SMTP id h45mr32951eea.40.1294333752296; Thu, 06 Jan 2011 09:09:12 -0800 (PST) Received: by 10.14.127.207 with HTTP; Thu, 6 Jan 2011 09:09:12 -0800 (PST) In-Reply-To: References: <87d3oc17oo.fsf@telefonica.net> <83ipy3m4jv.fsf@gnu.org> Date: Thu, 6 Jan 2011 12:09:12 -0500 X-Google-Sender-Auth: 8r9MiSY_5r06Hvki9qsjCSkTvnE Message-ID: Subject: Re: bug#7785: rgrep is broken on woe32 From: Sam Steingold To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.9 (---) X-Debbugs-Envelope-To: 7785 Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.9 (---) On Thu, Jan 6, 2011 at 11:20 AM, Eli Zaretskii wrote: >> Date: Thu, 6 Jan 2011 10:46:58 -0500 >> From: Sam Steingold >> Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org >> >> of PATH globally: >> >> (getenv "PATH") >> "c:\\gnu\\gnuwin32\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\S= ystem32\\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" >> >> find . "(" -path "*/SCCS" -o -path "*/RCS"...-o -name "*.pyo" ")" >> -prune -o =C2=A0-type f "(" -iname "*" -o -iname ".*" ")" -print0 | xarg= s >> -0 -e grep -i -nH "asdf" >> xargs: grep: No such file or directory >> ./src/clisp/current/src/ChangeLog:29: * modules/asdf/asdf.lisp: update >> to upstream "2.011" >> ./src/clisp/current/src/ChangeLog:512: =C2=A0 =C2=A0 =C2=A0 =C2=A0bundle= ASDF2 as a module >> ./src/clisp/current/src/ChangeLog:513: =C2=A0 =C2=A0 =C2=A0 =C2=A0* Make= file.devel (update-asdf): >> new .PHONY target >> ./src/clisp/current/src/ChangeLog:515: =C2=A0 =C2=A0 =C2=A0 =C2=A0* modu= les/asdf: add (based on asdf 2.008) >> ./src/clisp/current/src/ChangeLog:516: =C2=A0 =C2=A0 =C2=A0 =C2=A0* make= make.in, unix/INSTALL: >> mention asdf in the docs >> ./src/clisp/current/src/ChangeLog:590: =C2=A0 =C2=A0 =C2=A0 =C2=A0(requi= re): use the above, now >> one can hook asdf into clisp >> grep: ./src/clisp/c: No such file or directory >> find: write error: Invalid argument > > Does this command work from the Windows shell, if you tweak PATH to > have the gnuwin32 directory be at the beginning? yes, the same way. I started cmd; prepended gnuwin to path, started emacs -Q from the cmd; got the above in rgrep, then copied the command into the cmd and got the exact same output there, EXCEPT that neither emacs nor cmd contain the "grep: ./src/clisp/c: No such file or directory" error (the other two: "xargs: grep: No such file or directory" and "find: write error: Invalid argument" are present both in emacs and cmd). --=20 Sam Steingold From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 06 13:38:21 2011 Received: (at 7785) by debbugs.gnu.org; 6 Jan 2011 18:38:21 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pauj6-0000Yr-QF for submit@debbugs.gnu.org; Thu, 06 Jan 2011 13:38:21 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pauj4-0000Ye-1U for 7785@debbugs.gnu.org; Thu, 06 Jan 2011 13:38:19 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LEM009006FXV500@a-mtaout20.012.net.il> for 7785@debbugs.gnu.org; Thu, 06 Jan 2011 20:45:27 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.127.157]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LEM009CX6RQVK10@a-mtaout20.012.net.il>; Thu, 06 Jan 2011 20:45:27 +0200 (IST) Date: Thu, 06 Jan 2011 20:45:32 +0200 From: Eli Zaretskii Subject: Re: bug#7785: rgrep is broken on woe32 In-reply-to: To: Sam Steingold Message-id: <834o9lna5v.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: QUOTED-PRINTABLE X-012-Sender: halo1@inter.net.il References: <87d3oc17oo.fsf@telefonica.net> <83ipy3m4jv.fsf@gnu.org> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 7785 Cc: 7785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > Date: Thu, 6 Jan 2011 12:09:12 -0500 > From: Sam Steingold > Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org >=20 > >> find . "(" -path "*/SCCS" -o -path "*/RCS"...-o -name "*.pyo" ")= " > >> -prune -o =C2=A0-type f "(" -iname "*" -o -iname ".*" ")" -print= 0 | xargs > >> -0 -e grep -i -nH "asdf" > >> xargs: grep: No such file or directory > >> ./src/clisp/current/src/ChangeLog:29: * modules/asdf/asdf.lisp: = update > >> to upstream "2.011" > >> ./src/clisp/current/src/ChangeLog:512: =C2=A0 =C2=A0 =C2=A0 = =C2=A0bundle ASDF2 as a module > >> ./src/clisp/current/src/ChangeLog:513: =C2=A0 =C2=A0 =C2=A0 = =C2=A0* Makefile.devel (update-asdf): > >> new .PHONY target > >> ./src/clisp/current/src/ChangeLog:515: =C2=A0 =C2=A0 =C2=A0 = =C2=A0* modules/asdf: add (based on asdf 2.008) > >> ./src/clisp/current/src/ChangeLog:516: =C2=A0 =C2=A0 =C2=A0 = =C2=A0* makemake.in, unix/INSTALL: > >> mention asdf in the docs > >> ./src/clisp/current/src/ChangeLog:590: =C2=A0 =C2=A0 =C2=A0 = =C2=A0(require): use the above, now > >> one can hook asdf into clisp > >> grep: ./src/clisp/c: No such file or directory > >> find: write error: Invalid argument > > > > Does this command work from the Windows shell, if you tweak PATH = to > > have the gnuwin32 directory be at the beginning? >=20 > yes, the same way. > I started cmd; prepended gnuwin to path, started emacs -Q from the > cmd; got the above in rgrep, then copied the command into the cmd a= nd > got the exact same output there, > EXCEPT that neither emacs nor cmd contain the > "grep: ./src/clisp/c: No such file or directory" So at least this error is somehow related to the fact that you invoke Emacs from the Cygwin bash. Can you see what are the differences in process-environment between the invocations from bash and from cmd? > error (the other two: > "xargs: grep: No such file or directory" > and > "find: write error: Invalid argument" > are present both in emacs and cmd). So this is no longer just an Emacs problem, it seems. What happens if you repeat this experiment, but this time give an explicit absolute file name for each program, find, xargs, and grep? (I'd like to be sure we know what binaries are involved.) To avoid hassles with quoting, please use backslashes in the file names. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 06 13:41:33 2011 Received: (at 7785) by debbugs.gnu.org; 6 Jan 2011 18:41:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaumD-0000dC-2c for submit@debbugs.gnu.org; Thu, 06 Jan 2011 13:41:33 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaumA-0000d0-WF for 7785@debbugs.gnu.org; Thu, 06 Jan 2011 13:41:31 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LEM00A006W5CU00@a-mtaout22.012.net.il> for 7785@debbugs.gnu.org; Thu, 06 Jan 2011 20:48:45 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.127.157]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LEM007MM6X8B9L0@a-mtaout22.012.net.il>; Thu, 06 Jan 2011 20:48:45 +0200 (IST) Date: Thu, 06 Jan 2011 20:48:49 +0200 From: Eli Zaretskii Subject: Re: bug#7785: rgrep is broken on woe32 In-reply-to: To: Sam Steingold Message-id: <8339p5na0e.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: QUOTED-PRINTABLE X-012-Sender: halo1@inter.net.il References: <87d3oc17oo.fsf@telefonica.net> <83ipy3m4jv.fsf@gnu.org> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 7785 Cc: 7785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > Date: Thu, 6 Jan 2011 11:51:05 -0500 > From: Sam Steingold > Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org >=20 > >> this works just fine, like on linux: > >> PATH=3D/cygdrive/c/gnu/gnuwin32/bin:$PATH emacs -q > >> > >> moreover, > >> emacs -q > >> and moving gnuwin dir to the beginning of exec-path with > >> (let ((gw "c:/gnu/gnuwin32/bin")) > >> =C2=A0 (setq exec-path (cons gw (delete gw exec-path)))) > >> also works fine. > > > > ? =C2=A0What is different between these 2 "working" instances and= what you > > tried now? >=20 > OOPS. these no longer work. both produce this: Something's changed. Perhaps you could remember whether you changed something in between. > >> 'c:' is not recognized as an internal or external command, > >> operable program or batch file. > > > > This is because "c:/gnu/gnuwin32/bin/xargs", which is after the p= ipe > > symbol, is not quoted. =C2=A0So this is something I do understand= . >=20 > yes, that other cmdproxy issue - any change it will be addressed an= y time soon? I'd like to hear from Stefan or Chong before I make that change. In the meantime, you can do that in your sandbox: just edit the template= s used by grep.el to quote the %s after the pipe symbol. > thanks again for your time and compassion... You are welcome, and sorry you are having all this trouble. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 06 15:48:32 2011 Received: (at 7785) by debbugs.gnu.org; 6 Jan 2011 20:48:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pawl6-0003V0-9l for submit@debbugs.gnu.org; Thu, 06 Jan 2011 15:48:32 -0500 Received: from mail-ew0-f44.google.com ([209.85.215.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pawkz-0003Uo-EC for 7785@debbugs.gnu.org; Thu, 06 Jan 2011 15:48:26 -0500 Received: by ewy8 with SMTP id 8so7959514ewy.3 for <7785@debbugs.gnu.org>; Thu, 06 Jan 2011 12:55:40 -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=R9D3o1VHKup30yr09JQFjvxNEGAyYxvgznZWaGb18vM=; b=qhNirwPjdCCAt54+O161EKU8QxYWgDAkR2VMmpux7T8hVl9UdYyOnoWFy/DYfxy8I1 sIb/pAW1iHEu/cXiXM4JUhdtGgReOMK52e/odm4XVF1DOfkGzYE0YRQdkTBSzHm3E0Ao lNdrq4m4+x5C8HzH2M70mwf+qKQ/P9nuuUWB4= 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=qlAWpvKtFveh2LLw5pCpZD6LTh5EuX2DN2GycqqP0U0rDxnfFHqu5FTbj1NYozehi0 XljbLBipnMwYS8gFFcwiS1lIEbBWGaE1KawqkDV5clDX+XzTqa8bKQpJUkQE02DFATFs a9+GXjc+tbgq4h1xgim6hRjrQ7P1ZhZc9I5rw= MIME-Version: 1.0 Received: by 10.213.114.132 with SMTP id e4mr787513ebq.79.1294347340083; Thu, 06 Jan 2011 12:55:40 -0800 (PST) Received: by 10.14.127.207 with HTTP; Thu, 6 Jan 2011 12:55:40 -0800 (PST) In-Reply-To: <834o9lna5v.fsf@gnu.org> References: <87d3oc17oo.fsf@telefonica.net> <83ipy3m4jv.fsf@gnu.org> <834o9lna5v.fsf@gnu.org> Date: Thu, 6 Jan 2011 15:55:40 -0500 X-Google-Sender-Auth: bQk1L7U9e_k5PXzL_71iibkIQso Message-ID: Subject: Re: bug#7785: rgrep is broken on woe32 From: Sam Steingold To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.9 (---) X-Debbugs-Envelope-To: 7785 Cc: 7785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.9 (---) On Thu, Jan 6, 2011 at 1:45 PM, Eli Zaretskii wrote: > What happens if you repeat this experiment, but this time give an > explicit absolute file name for each program, find, xargs, and grep? > (I'd like to be sure we know what binaries are involved.) =C2=A0To avoid > hassles with quoting, please use backslashes in the file names. when I apply my w32-fns patch, I see this: -*- mode: grep; default-directory: "~/" -*- Grep started at Thu Jan 06 15:46:06 c:\gnu\gnuwin32\bin\find . "(" -path -o -path......o -name "*.tps" -o -name "*.vrs" -o -name "*.pyc" -o -name "*.pyo" ")" -prune -o -type f "(" -iname "*.[cdfh]" -o -iname "*.lisp" -o -iname "*.tst" -o -iname "*.m4" -o -iname "*.in" -o -iname "Makefile*" -o -iname "*.xml" ")" -print0 | c:\gnu\gnuwin32\bin\xargs -0 -e c:\gnu\gnuwin32\bin\grep -i -nH "asdf" c:\gnu\gnuwin32\bin\xargs: c:\gnu\gnuwin32\bin\grep: Invalid argument Grep finished (matches found) at Thu Jan 06 15:46:09 --=20 Sam Steingold From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 06 15:58:07 2011 Received: (at 7785) by debbugs.gnu.org; 6 Jan 2011 20:58:07 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PawuM-0003hT-K0 for submit@debbugs.gnu.org; Thu, 06 Jan 2011 15:58:06 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PawuH-0003gx-U5 for 7785@debbugs.gnu.org; Thu, 06 Jan 2011 15:58:03 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LEM00B00CYP5900@a-mtaout20.012.net.il> for 7785@debbugs.gnu.org; Thu, 06 Jan 2011 23:05:15 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.127.157]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LEM00AZND8QYW30@a-mtaout20.012.net.il>; Thu, 06 Jan 2011 23:05:15 +0200 (IST) Date: Thu, 06 Jan 2011 23:05:20 +0200 From: Eli Zaretskii Subject: Re: bug#7785: rgrep is broken on woe32 In-reply-to: To: Sam Steingold Message-id: <83vd21lp4f.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: QUOTED-PRINTABLE X-012-Sender: halo1@inter.net.il References: <87d3oc17oo.fsf@telefonica.net> <83ipy3m4jv.fsf@gnu.org> <834o9lna5v.fsf@gnu.org> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 7785 Cc: 7785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > Date: Thu, 6 Jan 2011 15:55:40 -0500 > From: Sam Steingold > Cc: 7785@debbugs.gnu.org >=20 > On Thu, Jan 6, 2011 at 1:45 PM, Eli Zaretskii wrote: > > What happens if you repeat this experiment, but this time give an > > explicit absolute file name for each program, find, xargs, and gr= ep? > > (I'd like to be sure we know what binaries are involved.) =C2= =A0To avoid > > hassles with quoting, please use backslashes in the file names. >=20 > when I apply my w32-fns patch, I see this: >=20 > -*- mode: grep; default-directory: "~/" -*- > Grep started at Thu Jan 06 15:46:06 >=20 > c:\gnu\gnuwin32\bin\find . "(" -path -o -path......o -name "*.tps"= -o > -name "*.vrs" -o -name "*.pyc" -o -name "*.pyo" ")" -prune -o -typ= e f > "(" -iname "*.[cdfh]" -o -iname "*.lisp" -o -iname "*.tst" -o -inam= e > "*.m4" -o -iname "*.in" -o -iname "Makefile*" -o -iname "*.xml" ")" > -print0 | c:\gnu\gnuwin32\bin\xargs -0 -e c:\gnu\gnuwin32\bin\grep = -i > -nH "asdf" > c:\gnu\gnuwin32\bin\xargs: c:\gnu\gnuwin32\bin\grep: Invalid argume= nt >=20 > Grep finished (matches found) at Thu Jan 06 15:46:09 And if you try the same command from the cmd prompt outside Emacs? Also, what does "c:\gnu\gnuwin32\bin\xargs --version" say? From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 06 16:04:40 2011 Received: (at 7785) by debbugs.gnu.org; 6 Jan 2011 21:04:40 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pax0i-0003q3-6E for submit@debbugs.gnu.org; Thu, 06 Jan 2011 16:04:40 -0500 Received: from mail-ey0-f172.google.com ([209.85.215.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pax0c-0003pn-KF for 7785@debbugs.gnu.org; Thu, 06 Jan 2011 16:04:38 -0500 Received: by eyd10 with SMTP id 10so7691466eyd.3 for <7785@debbugs.gnu.org>; Thu, 06 Jan 2011 13:11:49 -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; bh=TwbQuioW2Wmbf9zTWfKkH/QOv87zrMBQyt2FmXVn9EQ=; b=rYZYGGYZvU8G0GRwF3YZX+gU3n7ctm6SYeI3Se0qrGNGnNw11+JGNXW0eH6JNdy8u4 MPpVOfU4zUok0GJb0tPAw/j7p3ugSWoAtz1WGH4TJ63wLnG0R/uULyxhkEWQJV+kfxUk ktAsyt4JcGJQm/aS0v/AWHNCRWD1Q93SsawsI= 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; b=ahk5p5hjHSXT/GLXUT33rgABS0kVasBaoSW7has1lNP1nqHrBc8UxOgJOQDqy0ti86 4RXmJbQvcr71d56FWIuyWyAlon8XhkiYUsCmxRL2AQE11L7bgVzhhcVKKzb08G7Acnbj CwHX8TkfqnoWDY8+GY3KDijuY+vzxRWquJ7WI= MIME-Version: 1.0 Received: by 10.14.126.141 with SMTP id b13mr1280911eei.47.1294348309271; Thu, 06 Jan 2011 13:11:49 -0800 (PST) Received: by 10.14.127.207 with HTTP; Thu, 6 Jan 2011 13:11:49 -0800 (PST) In-Reply-To: <83vd21lp4f.fsf@gnu.org> References: <87d3oc17oo.fsf@telefonica.net> <83ipy3m4jv.fsf@gnu.org> <834o9lna5v.fsf@gnu.org> <83vd21lp4f.fsf@gnu.org> Date: Thu, 6 Jan 2011 16:11:49 -0500 X-Google-Sender-Auth: xrEqpJyS0ew2JIxcyqFQDdio678 Message-ID: Subject: Re: bug#7785: rgrep is broken on woe32 From: Sam Steingold To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -3.9 (---) X-Debbugs-Envelope-To: 7785 Cc: 7785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.9 (---) On Thu, Jan 6, 2011 at 4:05 PM, Eli Zaretskii wrote: > And if you try the same command from the cmd prompt outside Emacs? works just fine: C:\sds>c:\gnu\gnuwin32\bin\find . -name "ChangeLog" -print0 | c:\gnu\gnuwin32\bin\xargs -0 -e c:\gnu\gnuwin32\bin\grep -i -nH "asdf" ./src/cl/clocc/src/defsystem-3.x/ChangeLog:10: Added RUN-SHELL-COMMAND (modified from UFFI and ASDF to make it ./src/cl/clocc/src/defsystem-3.x/ChangeLog:466: MK3, following the ideas in ASDF. If the DEFSYSTEM form is ./src/cl/clocc/src/defsystem-3.x/ChangeLog:532: Controller can depend on defsystem versions 3 & 4 as well as asdf ./src/clisp/current/src/ChangeLog:29: * modules/asdf/asdf.lisp: update to upstream "2.011" ./src/clisp/current/src/ChangeLog:512: bundle ASDF2 as a module ./src/clisp/current/src/ChangeLog:513: * Makefile.devel (update-asdf): new .PHONY target ./src/clisp/current/src/ChangeLog:515: * modules/asdf: add (based on asdf 2.008) ./src/clisp/current/src/ChangeLog:516: * makemake.in, unix/INSTALL: mention asdf in the docs ./src/clisp/current/src/ChangeLog:590: (require): use the above, now one can hook asdf into clisp C:\sds> > Also, what does "c:\gnu\gnuwin32\bin\xargs --version" say? GNU xargs version 4.2.20 -- Sam Steingold From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 07 02:18:22 2011 Received: (at 7785) by debbugs.gnu.org; 7 Jan 2011 07:18:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pb6ac-0000cF-6x for submit@debbugs.gnu.org; Fri, 07 Jan 2011 02:18:22 -0500 Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pb6aZ-0000c1-Dm for 7785@debbugs.gnu.org; Fri, 07 Jan 2011 02:18:20 -0500 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LEN00K005T64L00@a-mtaout21.012.net.il> for 7785@debbugs.gnu.org; Fri, 07 Jan 2011 09:24:19 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.127.157]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LEN00KLL5WI4K00@a-mtaout21.012.net.il>; Fri, 07 Jan 2011 09:24:19 +0200 (IST) Date: Fri, 07 Jan 2011 09:24:24 +0200 From: Eli Zaretskii Subject: Re: bug#7785: rgrep is broken on woe32 In-reply-to: X-012-Sender: halo1@inter.net.il To: Sam Steingold Message-id: <83sjx5kwgn.fsf@gnu.org> References: <87d3oc17oo.fsf@telefonica.net> <83ipy3m4jv.fsf@gnu.org> <834o9lna5v.fsf@gnu.org> <83vd21lp4f.fsf@gnu.org> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 7785 Cc: 7785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > Date: Thu, 6 Jan 2011 16:11:49 -0500 > From: Sam Steingold > Cc: 7785@debbugs.gnu.org > > On Thu, Jan 6, 2011 at 4:05 PM, Eli Zaretskii wrote: > > And if you try the same command from the cmd prompt outside Emacs? > > works just fine: Please show all the differences between the environment variables in cmd (type "set RET") on the one hand, and in process-environment under the configuration when this happened, OTOH: > when I apply my w32-fns patch, I see this: > > -*- mode: grep; default-directory: "~/" -*- > Grep started at Thu Jan 06 15:46:06 > > c:\gnu\gnuwin32\bin\find . "(" -path -o -path......o -name "*.tps" -o > -name "*.vrs" -o -name "*.pyc" -o -name "*.pyo" ")" -prune -o -type f > "(" -iname "*.[cdfh]" -o -iname "*.lisp" -o -iname "*.tst" -o -iname > "*.m4" -o -iname "*.in" -o -iname "Makefile*" -o -iname "*.xml" ")" > -print0 | c:\gnu\gnuwin32\bin\xargs -0 -e c:\gnu\gnuwin32\bin\grep -i > -nH "asdf" > c:\gnu\gnuwin32\bin\xargs: c:\gnu\gnuwin32\bin\grep: Invalid argument > > Grep finished (matches found) at Thu Jan 06 15:46:09 From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 07 10:09:51 2011 Received: (at 7785) by debbugs.gnu.org; 7 Jan 2011 15:09:51 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbDwj-0004LC-Ps for submit@debbugs.gnu.org; Fri, 07 Jan 2011 10:09:51 -0500 Received: from mail-ew0-f44.google.com ([209.85.215.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbDwh-0004Kz-43 for 7785@debbugs.gnu.org; Fri, 07 Jan 2011 10:09:40 -0500 Received: by ewy8 with SMTP id 8so8252399ewy.3 for <7785@debbugs.gnu.org>; Fri, 07 Jan 2011 07:16:55 -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; bh=z3TsDmNYwvA9sz4EWm8nPSUiKNWSK+g8ihCkABXp6+A=; b=LSs/CM9TANEfBgAU+5uk2bqhbG+eHvPhLsQAY76MiIbSzxKwKKkNMo08atVPREJy8F FJbtYzppPjhu7dMxj3YPOcdk6g1PbQyI10eKFxseB3uPwtM1HX7/Kla45Nvp3ShYw7SN yT2CP9YsBSxOnvN6j3mLSS4WuMVvp7+emWWNs= 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; b=S0j6DdAal2zwkzBbmj65AL2YkUpwb90NjTYls/xfmmBYusFxG1Qwj6t/f5JiBjQAju vnMe00OQLH1NcWk9+KNrhSl59T40rhl9dkD7mDk662bgG3tNhWkYD8k3+xTDYv96naM1 FCcylKHrnjbwexN/j/pxptL18uLu0s1JRlWh0= MIME-Version: 1.0 Received: by 10.213.114.132 with SMTP id e4mr1445150ebq.79.1294413415480; Fri, 07 Jan 2011 07:16:55 -0800 (PST) Received: by 10.14.127.207 with HTTP; Fri, 7 Jan 2011 07:16:55 -0800 (PST) In-Reply-To: <83sjx5kwgn.fsf@gnu.org> References: <87d3oc17oo.fsf@telefonica.net> <83ipy3m4jv.fsf@gnu.org> <834o9lna5v.fsf@gnu.org> <83vd21lp4f.fsf@gnu.org> <83sjx5kwgn.fsf@gnu.org> Date: Fri, 7 Jan 2011 10:16:55 -0500 X-Google-Sender-Auth: 6AaXnkWHhabIwu0F85ZSzPiGLUI Message-ID: Subject: Re: bug#7785: rgrep is broken on woe32 From: Sam Steingold To: Eli Zaretskii Content-Type: multipart/mixed; boundary=0015174c363ed27e770499431b68 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: 7785 Cc: 7785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.8 (---) --0015174c363ed27e770499431b68 Content-Type: text/plain; charset=UTF-8 On Fri, Jan 7, 2011 at 2:24 AM, Eli Zaretskii wrote: >> Date: Thu, 6 Jan 2011 16:11:49 -0500 >> From: Sam Steingold >> Cc: 7785@debbugs.gnu.org >> >> On Thu, Jan 6, 2011 at 4:05 PM, Eli Zaretskii wrote: >> > And if you try the same command from the cmd prompt outside Emacs? >> >> works just fine: > > Please show all the differences between the environment variables in > cmd (type "set RET") on the one hand, > and in process-environment under > the configuration when this happened, OTOH: attached. -- Sam Steingold --0015174c363ed27e770499431b68 Content-Type: application/octet-stream; name=env-emacs Content-Disposition: attachment; filename=env-emacs Content-Transfer-Encoding: base64 X-Attachment-Id: f_gin8ak2y0 X19DT01QQVRfTEFZRVI9TFVBCkFMTFVTRVJTUFJPRklMRT1DOlxEb2N1bWVudHMgYW5kIFNldHRp bmdzXEFsbCBVc2VycwpBUFBEQVRBPUM6XERvY3VtZW50cyBhbmQgU2V0dGluZ3Ncc2RzXEFwcGxp Y2F0aW9uIERhdGEKQ0xJRU5UTkFNRT1Db25zb2xlCkNvbW1vblByb2dyYW1GaWxlcyh4ODYpPUM6 XFByb2dyYW0gRmlsZXMgKHg4NilcQ29tbW9uIEZpbGVzCkNvbW1vblByb2dyYW1GaWxlcz1DOlxQ cm9ncmFtIEZpbGVzICh4ODYpXENvbW1vbiBGaWxlcwpDb21tb25Qcm9ncmFtVzY0MzI9QzpcUHJv Z3JhbSBGaWxlc1xDb21tb24gRmlsZXMKQ09NUFVURVJOQU1FPVNEUwpDT01TUEVDPUM6XFdJTkRP V1Ncc3lzdGVtMzJcY21kLmV4ZQplbWFjc19kaXI9Qzovc2RzL3NyYy9lbWFjcy90cnVuawpFTUFD U0RBVEE9Qzovc2RzL3NyYy9lbWFjcy90cnVuay9ldGMKRU1BQ1NET0M9Qzovc2RzL3NyYy9lbWFj cy90cnVuay9ldGMKRU1BQ1NMT0FEUEFUSD1DOi9zZHMvc3JjL2VtYWNzL3RydW5rL3NpdGUtbGlz cDtDOi9zZHMvc3JjL2VtYWNzL3RydW5rLy4uL3NpdGUtbGlzcDtDOi9zZHMvc3JjL2VtYWNzL3Ry dW5rL2xpc3A7Qzovc2RzL3NyYy9lbWFjcy90cnVuay9sZWltCkVNQUNTUEFUSD1DOi9zZHMvc3Jj L2VtYWNzL3RydW5rL2JpbgpGUF9OT19IT1NUX0NIRUNLPU5PCkhPTUU9Yzovc2RzCkhPTUVEUklW RT1DOgpIT01FUEFUSD1cRG9jdW1lbnRzIGFuZCBTZXR0aW5nc1xzZHMKSU5DTFVERT1jOlxkZXZc aW5jbHVkZQpMQU5HPUMKTElCPWM6XGRldlxsaWIKTE9HT05TRVJWRVI9XFxTRFMKTlVNQkVSX09G X1BST0NFU1NPUlM9OApPUz1XaW5kb3dzX05UClBBVEg9YzpcZ251XGdudXdpbjMyXGJpbjtjOlxX SU5ET1dTXHN5c3RlbTMyO0M6XFdJTkRPV1M7QzpcV0lORE9XU1xTeXN0ZW0zMlxXYmVtO2M6XGdu dVxnbnV3aW4zMlxiaW47YzpcZ251XGN5Z3dpblxiaW47ZDpcYmluO0M6XGdudVxjbGlzcC0yLjQ5 O0M6XFByb2dyYW0gRmlsZXNcVG9ydG9pc2VTVk5cYmluO0M6XFByb2dyYW0gRmlsZXMgKHg4Nilc VG9ydG9pc2VIZ1w7QzpcUHJvZ3JhbSBGaWxlcyAoeDg2KVxCYXphYXI7QzpcZ251XEdudVRMUy0y LjEwLjFcYmluO2M6XHNkc1xzcmNcZW1hY3NcdHJ1bmtcYmluClBBVEhFWFQ9LkNPTTsuRVhFOy5C QVQ7LkNNRDsuVkJTOy5WQkU7LkpTOy5KU0U7LldTRjsuV1NIClBST0NFU1NPUl9BUkNISVRFQ1RV UkU9eDg2ClBST0NFU1NPUl9BUkNISVRFVzY0MzI9QU1ENjQKUFJPQ0VTU09SX0lERU5USUZJRVI9 RU02NFQgRmFtaWx5IDYgTW9kZWwgMjYgU3RlcHBpbmcgNSwgR2VudWluZUludGVsClBST0NFU1NP Ul9MRVZFTD02ClBST0NFU1NPUl9SRVZJU0lPTj0xYTA1ClByb2dyYW1GaWxlcyh4ODYpPUM6XFBy b2dyYW0gRmlsZXMgKHg4NikKUHJvZ3JhbUZpbGVzPUM6XFByb2dyYW0gRmlsZXMgKHg4NikKUHJv Z3JhbVc2NDMyPUM6XFByb2dyYW0gRmlsZXMKU0VTU0lPTk5BTUU9Q29uc29sZQpTSEVMTD1DOi9z ZHMvc3JjL2VtYWNzL3RydW5rL2Jpbi9jbWRwcm94eS5leGUKU1NIX0FVVEhfU09DSz0vdG1wL3Nz aC1VRmRPY0QyODk2L2FnZW50LjI4OTYKU3lzdGVtRHJpdmU9QzoKU3lzdGVtUm9vdD1DOlxXSU5E T1dTClRFTVA9QzpcV0lORE9XU1xURU1QXApURVJNPWR1bWIKVE1QPUM6XFdJTkRPV1NcVEVNUFwK VE1QRElSPUM6XFdJTkRPV1NcVEVNUFwKVVNFUkRPTUFJTj1TRFMKVVNFUk5BTUU9c2RzClVTRVJQ Uk9GSUxFPUM6XERvY3VtZW50cyBhbmQgU2V0dGluZ3Ncc2RzClZTODBDT01OVE9PTFM9QzpcUHJv Z3JhbSBGaWxlcyAoeDg2KVxNaWNyb3NvZnQgVmlzdWFsIFN0dWRpbyA4XENvbW1vbjdcVG9vbHNc CndpbmRpcj1DOlxXSU5ET1dTCg== --0015174c363ed27e770499431b68 Content-Type: application/octet-stream; name=env-cmd Content-Disposition: attachment; filename=env-cmd Content-Transfer-Encoding: base64 X-Attachment-Id: f_gin8ak311 QUxMVVNFUlNQUk9GSUxFPUM6XERvY3VtZW50cyBhbmQgU2V0dGluZ3NcQWxsIFVzZXJzCkFQUERB VEE9QzpcRG9jdW1lbnRzIGFuZCBTZXR0aW5nc1xzZHNcQXBwbGljYXRpb24gRGF0YQpDTElFTlRO QU1FPUNvbnNvbGUKQ29tbW9uUHJvZ3JhbUZpbGVzPUM6XFByb2dyYW0gRmlsZXNcQ29tbW9uIEZp bGVzCkNvbW1vblByb2dyYW1GaWxlcyh4ODYpPUM6XFByb2dyYW0gRmlsZXMgKHg4NilcQ29tbW9u IEZpbGVzCkNPTVBVVEVSTkFNRT1TRFMKQ29tU3BlYz1DOlxXSU5ET1dTXHN5c3RlbTMyXGNtZC5l eGUKRlBfTk9fSE9TVF9DSEVDSz1OTwpIT01FPWM6L3NkcwpIT01FRFJJVkU9QzoKSE9NRVBBVEg9 XERvY3VtZW50cyBhbmQgU2V0dGluZ3Ncc2RzCklOQ0xVREU9YzpcZGV2XGluY2x1ZGUKTElCPWM6 XGRldlxsaWIKTE9HT05TRVJWRVI9XFxTRFMKTlVNQkVSX09GX1BST0NFU1NPUlM9OApPUz1XaW5k b3dzX05UClBhdGg9QzpcV0lORE9XU1xzeXN0ZW0zMjtDOlxXSU5ET1dTO0M6XFdJTkRPV1NcU3lz dGVtMzJcV2JlbTtjOlxnbnVcZ251d2luMzJcYmluO2M6XGdudVxjeWd3aW5cYmluO2Q6XGJpbjtD OlxnbnVcY2xpc3AtMi40OTtDOlxQcm9ncmFtIEZpbGVzXFRvcnRvaXNlU1ZOXGJpbjtDOlxQcm9n cmFtIEZpbGVzICh4ODYpXFRvcnRvaXNlSGdcO0M6XFByb2dyYW0gRmlsZXMgKHg4NilcQmF6YWFy O0M6XGdudVxHbnVUTFMtMi4xMC4xXGJpbgpQQVRIRVhUPS5DT007LkVYRTsuQkFUOy5DTUQ7LlZC UzsuVkJFOy5KUzsuSlNFOy5XU0Y7LldTSApQUk9DRVNTT1JfQVJDSElURUNUVVJFPUFNRDY0ClBS T0NFU1NPUl9JREVOVElGSUVSPUVNNjRUIEZhbWlseSA2IE1vZGVsIDI2IFN0ZXBwaW5nIDUsIEdl bnVpbmVJbnRlbApQUk9DRVNTT1JfTEVWRUw9NgpQUk9DRVNTT1JfUkVWSVNJT049MWEwNQpQcm9n cmFtRmlsZXM9QzpcUHJvZ3JhbSBGaWxlcwpQcm9ncmFtRmlsZXMoeDg2KT1DOlxQcm9ncmFtIEZp bGVzICh4ODYpClBST01QVD0kUCRHClNFU1NJT05OQU1FPUNvbnNvbGUKU3lzdGVtRHJpdmU9QzoK U3lzdGVtUm9vdD1DOlxXSU5ET1dTClRFTVA9QzpcV0lORE9XU1xURU1QXApUTVA9QzpcV0lORE9X U1xURU1QXApVU0VSRE9NQUlOPVNEUwpVU0VSTkFNRT1zZHMKVVNFUlBST0ZJTEU9QzpcRG9jdW1l bnRzIGFuZCBTZXR0aW5nc1xzZHMKVlM4MENPTU5UT09MUz1DOlxQcm9ncmFtIEZpbGVzICh4ODYp XE1pY3Jvc29mdCBWaXN1YWwgU3R1ZGlvIDhcQ29tbW9uN1xUb29sc1wKd2luZGlyPUM6XFdJTkRP V1MK --0015174c363ed27e770499431b68 Content-Type: application/octet-stream; name=env-diff Content-Disposition: attachment; filename=env-diff Content-Transfer-Encoding: base64 X-Attachment-Id: f_gin8ak322 LS0tIGVudi1jbWQJMjAxMS0wMS0wNyAxMDoxNDoyNS41NDU1MDAwMDAgLTA1MDAKKysrIGVudi1l bWFjcwkyMDExLTAxLTA3IDEwOjEwOjQwLjk1MTc1MDAwMCAtMDUwMApAQCAtMSwzMyArMSw0NiBA QAorX19DT01QQVRfTEFZRVI9TFVBCiBBTExVU0VSU1BST0ZJTEU9QzpcRG9jdW1lbnRzIGFuZCBT ZXR0aW5nc1xBbGwgVXNlcnMKIEFQUERBVEE9QzpcRG9jdW1lbnRzIGFuZCBTZXR0aW5nc1xzZHNc QXBwbGljYXRpb24gRGF0YQogQ0xJRU5UTkFNRT1Db25zb2xlCi1Db21tb25Qcm9ncmFtRmlsZXM9 QzpcUHJvZ3JhbSBGaWxlc1xDb21tb24gRmlsZXMKIENvbW1vblByb2dyYW1GaWxlcyh4ODYpPUM6 XFByb2dyYW0gRmlsZXMgKHg4NilcQ29tbW9uIEZpbGVzCitDb21tb25Qcm9ncmFtRmlsZXM9Qzpc UHJvZ3JhbSBGaWxlcyAoeDg2KVxDb21tb24gRmlsZXMKK0NvbW1vblByb2dyYW1XNjQzMj1DOlxQ cm9ncmFtIEZpbGVzXENvbW1vbiBGaWxlcwogQ09NUFVURVJOQU1FPVNEUwotQ29tU3BlYz1DOlxX SU5ET1dTXHN5c3RlbTMyXGNtZC5leGUKK0NPTVNQRUM9QzpcV0lORE9XU1xzeXN0ZW0zMlxjbWQu ZXhlCitlbWFjc19kaXI9Qzovc2RzL3NyYy9lbWFjcy90cnVuaworRU1BQ1NEQVRBPUM6L3Nkcy9z cmMvZW1hY3MvdHJ1bmsvZXRjCitFTUFDU0RPQz1DOi9zZHMvc3JjL2VtYWNzL3RydW5rL2V0Ywor RU1BQ1NMT0FEUEFUSD1DOi9zZHMvc3JjL2VtYWNzL3RydW5rL3NpdGUtbGlzcDtDOi9zZHMvc3Jj L2VtYWNzL3RydW5rLy4uL3NpdGUtbGlzcDtDOi9zZHMvc3JjL2VtYWNzL3RydW5rL2xpc3A7Qzov c2RzL3NyYy9lbWFjcy90cnVuay9sZWltCitFTUFDU1BBVEg9Qzovc2RzL3NyYy9lbWFjcy90cnVu ay9iaW4KIEZQX05PX0hPU1RfQ0hFQ0s9Tk8KIEhPTUU9Yzovc2RzCiBIT01FRFJJVkU9QzoKIEhP TUVQQVRIPVxEb2N1bWVudHMgYW5kIFNldHRpbmdzXHNkcwogSU5DTFVERT1jOlxkZXZcaW5jbHVk ZQorTEFORz1DCiBMSUI9YzpcZGV2XGxpYgogTE9HT05TRVJWRVI9XFxTRFMKIE5VTUJFUl9PRl9Q Uk9DRVNTT1JTPTgKIE9TPVdpbmRvd3NfTlQKLVBhdGg9QzpcV0lORE9XU1xzeXN0ZW0zMjtDOlxX SU5ET1dTO0M6XFdJTkRPV1NcU3lzdGVtMzJcV2JlbTtjOlxnbnVcZ251d2luMzJcYmluO2M6XGdu dVxjeWd3aW5cYmluO2Q6XGJpbjtDOlxnbnVcY2xpc3AtMi40OTtDOlxQcm9ncmFtIEZpbGVzXFRv cnRvaXNlU1ZOXGJpbjtDOlxQcm9ncmFtIEZpbGVzICh4ODYpXFRvcnRvaXNlSGdcO0M6XFByb2dy YW0gRmlsZXMgKHg4NilcQmF6YWFyO0M6XGdudVxHbnVUTFMtMi4xMC4xXGJpbgorUEFUSD1jOlxn bnVcZ251d2luMzJcYmluO2M6XFdJTkRPV1Ncc3lzdGVtMzI7QzpcV0lORE9XUztDOlxXSU5ET1dT XFN5c3RlbTMyXFdiZW07YzpcZ251XGdudXdpbjMyXGJpbjtjOlxnbnVcY3lnd2luXGJpbjtkOlxi aW47QzpcZ251XGNsaXNwLTIuNDk7QzpcUHJvZ3JhbSBGaWxlc1xUb3J0b2lzZVNWTlxiaW47Qzpc UHJvZ3JhbSBGaWxlcyAoeDg2KVxUb3J0b2lzZUhnXDtDOlxQcm9ncmFtIEZpbGVzICh4ODYpXEJh emFhcjtDOlxnbnVcR251VExTLTIuMTAuMVxiaW47Yzpcc2RzXHNyY1xlbWFjc1x0cnVua1xiaW4K IFBBVEhFWFQ9LkNPTTsuRVhFOy5CQVQ7LkNNRDsuVkJTOy5WQkU7LkpTOy5KU0U7LldTRjsuV1NI Ci1QUk9DRVNTT1JfQVJDSElURUNUVVJFPUFNRDY0CitQUk9DRVNTT1JfQVJDSElURUNUVVJFPXg4 NgorUFJPQ0VTU09SX0FSQ0hJVEVXNjQzMj1BTUQ2NAogUFJPQ0VTU09SX0lERU5USUZJRVI9RU02 NFQgRmFtaWx5IDYgTW9kZWwgMjYgU3RlcHBpbmcgNSwgR2VudWluZUludGVsCiBQUk9DRVNTT1Jf TEVWRUw9NgogUFJPQ0VTU09SX1JFVklTSU9OPTFhMDUKLVByb2dyYW1GaWxlcz1DOlxQcm9ncmFt IEZpbGVzCiBQcm9ncmFtRmlsZXMoeDg2KT1DOlxQcm9ncmFtIEZpbGVzICh4ODYpCi1QUk9NUFQ9 JFAkRworUHJvZ3JhbUZpbGVzPUM6XFByb2dyYW0gRmlsZXMgKHg4NikKK1Byb2dyYW1XNjQzMj1D OlxQcm9ncmFtIEZpbGVzCiBTRVNTSU9OTkFNRT1Db25zb2xlCitTSEVMTD1DOi9zZHMvc3JjL2Vt YWNzL3RydW5rL2Jpbi9jbWRwcm94eS5leGUKK1NTSF9BVVRIX1NPQ0s9L3RtcC9zc2gtVUZkT2NE Mjg5Ni9hZ2VudC4yODk2CiBTeXN0ZW1Ecml2ZT1DOgogU3lzdGVtUm9vdD1DOlxXSU5ET1dTCiBU RU1QPUM6XFdJTkRPV1NcVEVNUFwKK1RFUk09ZHVtYgogVE1QPUM6XFdJTkRPV1NcVEVNUFwKK1RN UERJUj1DOlxXSU5ET1dTXFRFTVBcCiBVU0VSRE9NQUlOPVNEUwogVVNFUk5BTUU9c2RzCiBVU0VS UFJPRklMRT1DOlxEb2N1bWVudHMgYW5kIFNldHRpbmdzXHNkcwo= --0015174c363ed27e770499431b68-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 07 11:17:01 2011 Received: (at 7785) by debbugs.gnu.org; 7 Jan 2011 16:17:01 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbEzt-0005l4-6V for submit@debbugs.gnu.org; Fri, 07 Jan 2011 11:17:01 -0500 Received: from mail-ey0-f172.google.com ([209.85.215.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbEzr-0005kt-Tp for 7785@debbugs.gnu.org; Fri, 07 Jan 2011 11:17:00 -0500 Received: by eyd10 with SMTP id 10so8019244eyd.3 for <7785@debbugs.gnu.org>; Fri, 07 Jan 2011 08:24:16 -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; bh=TQiDdt7uXbFg2Za9QNGrlI6tSXlAsahnGdjR2965vFs=; b=CBHt8V9jS2KionnJxAyglTpwCIbH/NghvKs/lGKk8sq88mvl9afKyJVaCVvZ3LW11s ESHb1MxM1aq1NN1czFr3mqNxklBENumTDDJFkPnV0JcROqZUPuhorVc/mQFwRLkrlwEy CdbQpGO7FBMG/+/CR4jI4v+7ZtPgdAM2u6y3k= 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; b=MIX3Is/0E0P+ujop8LS3q6OBtcURxG3+gdy75m/c7QoD3bT6NIIKkHtEwZ95gzVyot vP91TtVM/RB+Ulls/fPXpW4VAioiIORvIxJhaE56z4f5TsXT0sCcUz+l52uvgBS/NaVR IoXRjYD3Dr+/fxaTIl1488R4KKoq2Q7Bz/ZWc= MIME-Version: 1.0 Received: by 10.14.126.141 with SMTP id b13mr63793eei.47.1294417456627; Fri, 07 Jan 2011 08:24:16 -0800 (PST) Received: by 10.14.127.207 with HTTP; Fri, 7 Jan 2011 08:24:16 -0800 (PST) In-Reply-To: References: <87d3oc17oo.fsf@telefonica.net> <83ipy3m4jv.fsf@gnu.org> <834o9lna5v.fsf@gnu.org> <83vd21lp4f.fsf@gnu.org> <83sjx5kwgn.fsf@gnu.org> Date: Fri, 7 Jan 2011 11:24:16 -0500 X-Google-Sender-Auth: wdWrN7giuB9pHgyYB10funa9oYE Message-ID: Subject: Re: bug#7785: rgrep is broken on woe32 From: Sam Steingold To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: 7785 Cc: 7785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.8 (---) YAY!!!!! the following solves my problem for now (I don't know what will happen tomorrow though :-) (when sds-winnt (setq find-program ;(concat sds-gnuwin-home "bin\\find") (w32-convert-standard-filename (concat sds-cygwin-home "bin\\find")) xargs-program ;(concat sds-gnuwin-home "bin\\xargs") (w32-convert-standard-filename (concat sds-cygwin-home "bin\\xargs")) grep-program ;(concat sds-gnuwin-home "bin\\grep") (w32-convert-standard-filename (concat sds-cygwin-home "bin\\grep")) grep-find-use-xargs 'gnu grep-use-null-device nil)) please close this bug; I will reopen it if I ever get stuck again :-( (Eli, thanks a lot for your patience, I will not be trying anything else for this as long as the above solution works). From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 07 13:09:22 2011 Received: (at 7785-done) by debbugs.gnu.org; 7 Jan 2011 18:09:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbGkb-000898-SR for submit@debbugs.gnu.org; Fri, 07 Jan 2011 13:09:22 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbGkZ-00088w-9O for 7785-done@debbugs.gnu.org; Fri, 07 Jan 2011 13:09:20 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LEO00000016UO00@a-mtaout22.012.net.il> for 7785-done@debbugs.gnu.org; Fri, 07 Jan 2011 20:16:24 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.127.157]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LEO000DW03ATR10@a-mtaout22.012.net.il>; Fri, 07 Jan 2011 20:16:24 +0200 (IST) Date: Fri, 07 Jan 2011 20:16:29 +0200 From: Eli Zaretskii Subject: Re: bug#7785: rgrep is broken on woe32 In-reply-to: X-012-Sender: halo1@inter.net.il To: Sam Steingold Message-id: <83bp3slgua.fsf@gnu.org> References: <87d3oc17oo.fsf@telefonica.net> <83ipy3m4jv.fsf@gnu.org> <834o9lna5v.fsf@gnu.org> <83vd21lp4f.fsf@gnu.org> <83sjx5kwgn.fsf@gnu.org> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 7785-done Cc: 7785-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > Date: Fri, 7 Jan 2011 11:24:16 -0500 > From: Sam Steingold > Cc: 7785@debbugs.gnu.org > > YAY!!!!! > the following solves my problem for now (I don't know what will happen > tomorrow though :-) > > (when sds-winnt > (setq find-program ;(concat sds-gnuwin-home "bin\\find") > (w32-convert-standard-filename (concat sds-cygwin-home "bin\\find")) > xargs-program ;(concat sds-gnuwin-home "bin\\xargs") > (w32-convert-standard-filename (concat sds-cygwin-home "bin\\xargs")) > grep-program ;(concat sds-gnuwin-home "bin\\grep") > (w32-convert-standard-filename (concat sds-cygwin-home "bin\\grep")) > grep-find-use-xargs 'gnu > grep-use-null-device nil)) So I guess using Cygwin versions does solve the problem. Glad you've found a solution. > please close this bug; I will reopen it if I ever get stuck again :-( Done. > (Eli, thanks a lot for your patience, I will not be trying anything > else for this as long as the above solution works). You are welcome. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 08 15:53:28 2011 Received: (at 7785) by debbugs.gnu.org; 8 Jan 2011 20:53:29 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pbfmy-0002wP-MF for submit@debbugs.gnu.org; Sat, 08 Jan 2011 15:53:28 -0500 Received: from vm-emlprdomr-05.its.yale.edu ([130.132.50.146]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pbfmv-0002w8-EV; Sat, 08 Jan 2011 15:53:26 -0500 Received: from furball (c-71-192-165-84.hsd1.ct.comcast.net [71.192.165.84]) (authenticated bits=0) by vm-emlprdomr-05.its.yale.edu (8.14.4/8.14.4) with ESMTP id p08L0iVO018583 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 8 Jan 2011 16:00:44 -0500 Received: by furball (Postfix, from userid 1000) id E9A58161EAC; Sat, 8 Jan 2011 16:00:43 -0500 (EST) From: Chong Yidong To: Eli Zaretskii Subject: Re: bug#6784: bug#7785: rgrep is broken on woe32 References: <87d3oc17oo.fsf@telefonica.net> <87k4ijxeh2.fsf@wanadoo.es> <874o9nx9vx.fsf@wanadoo.es> Date: Sat, 08 Jan 2011 16:00:43 -0500 In-Reply-To: (Eli Zaretskii's message of "Thu, 06 Jan 2011 07:09:10 -0500") Message-ID: <87mxnbkt50.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.146 X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 7785 Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org, Sam Steingold , 6784@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) Eli Zaretskii writes: > The discussions in that bug report concluded that the program file > name after the pipe needs to be quoted, in order for it to work with > file names that use forward- and back-slashes alike. I can solve that > problem for rgrep (and for other similar commands) by tweaking the > templates used by grep.el, so as to quote the %s after the pipe > character `|'. Would that be an okay solution? I think this is an acceptable solution, and agree that changing cmdproxy to handle this intelligently sounds like a nightmare. > The disadvantage is, of course, that similar solutions will have to be > implemented for each Emacs command that launches a shell pipeline. Let's just fix these individually as the problems are reported. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 08 17:05:56 2011 Received: (at 7785) by debbugs.gnu.org; 8 Jan 2011 22:05:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pbgv6-0005DD-0y for submit@debbugs.gnu.org; Sat, 08 Jan 2011 17:05:56 -0500 Received: from smtp-q2.skynet.lt ([212.122.94.173]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pbgv3-0005Cy-9p for 7785@debbugs.gnu.org; Sat, 08 Jan 2011 17:05:54 -0500 Received: from nd2.smtpcl1.5ci.lt (nd2.smtpcl1.5ci.lt [212.122.94.183]) by smtp-q2.skynet.lt (Postfix) with ESMTP id 95789106905; Sun, 9 Jan 2011 00:13:13 +0200 (EET) Received: from [127.0.0.1] (helo=localhost) by nd2.smtpcl1.5ci.lt with esmtp (Exim 4.71) (envelope-from ) id 1Pbh28-0004sk-Cc; Sun, 09 Jan 2011 00:13:12 +0200 X-Spam-Flag: NO X-Spam-Score: 0.1 X-Spam-Level: X-Spam-Status: No, score=0.1 required=8 tests=[RDNS_NONE=0.1] autolearn=no Received: from nd2.smtpcl1.5ci.lt ([127.0.0.1]) by localhost (nd2.smtpcl1.5ci.lt [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Plu2LhQ-xEzC; Sun, 9 Jan 2011 00:13:11 +0200 (EET) Received: from [84.240.35.136] (helo=[192.168.2.2]) by nd2.smtpcl1.5ci.lt with esmtp (Exim 4.71) (envelope-from ) id 1Pbh26-0004se-1m; Sun, 09 Jan 2011 00:13:10 +0200 Message-ID: <4D28E175.2040001@gmail.com> Date: Sun, 09 Jan 2011 00:13:09 +0200 From: =?UTF-8?B?TGFpbW9uYXMgVsSXYnJh?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.16) Gecko/20101123 SeaMonkey/2.0.11 MIME-Version: 1.0 To: Chong Yidong Subject: Re: bug#7785: bug#6784: bug#7785: rgrep is broken on woe32 References: <87d3oc17oo.fsf@telefonica.net> <87k4ijxeh2.fsf@wanadoo.es> <874o9nx9vx.fsf@wanadoo.es> <87mxnbkt50.fsf@stupidchicken.com> In-Reply-To: <87mxnbkt50.fsf@stupidchicken.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 7785 Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org, Sam Steingold X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.4 (--) Chong Yidong wrote: > Eli Zaretskii writes: > >> The discussions in that bug report concluded that the program file >> name after the pipe needs to be quoted, in order for it to work with >> file names that use forward- and back-slashes alike. I can solve that >> problem for rgrep (and for other similar commands) by tweaking the >> templates used by grep.el, so as to quote the %s after the pipe >> character `|'. Would that be an okay solution? > > I think this is an acceptable solution, and agree that changing cmdprox= y > to handle this intelligently sounds like a nightmare. As long as cmdproxy is meant to pass commands (and in principle; acting=20 as a proxy and dealing with various shells and with different their=20 behaviours, requirements) to the particular shell (cmd.exe), it's best=20 to fix this bug in a cmdproxy, because this bug is only the =E2=80=9Eprob= lem=E2=80=9C of=20 the cmd.exe. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 09 12:53:21 2011 Received: (at 7785) by debbugs.gnu.org; 9 Jan 2011 17:53:21 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbzSD-0000IT-B3 for submit@debbugs.gnu.org; Sun, 09 Jan 2011 12:53:21 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbzS9-0000IA-OD; Sun, 09 Jan 2011 12:53:19 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LER00400O9V2X00@a-mtaout20.012.net.il>; Sun, 09 Jan 2011 19:59:57 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.131.253]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LER00389ONUGX70@a-mtaout20.012.net.il>; Sun, 09 Jan 2011 19:59:56 +0200 (IST) Date: Sun, 09 Jan 2011 19:59:56 +0200 From: Eli Zaretskii Subject: Re: bug#6784: bug#7785: rgrep is broken on woe32 In-reply-to: <87mxnbkt50.fsf@stupidchicken.com> X-012-Sender: halo1@inter.net.il To: Chong Yidong , Michael Albinus Message-id: <83ipxyj6ub.fsf@gnu.org> References: <87d3oc17oo.fsf@telefonica.net> <87k4ijxeh2.fsf@wanadoo.es> <874o9nx9vx.fsf@wanadoo.es> <87mxnbkt50.fsf@stupidchicken.com> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 7785 Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org, sds@gnu.org, 6784-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > From: Chong Yidong > Cc: Sam Steingold , 7785@debbugs.gnu.org, 6784@debbugs.gnu.org > Date: Sat, 08 Jan 2011 16:00:43 -0500 > > Eli Zaretskii writes: > > > The discussions in that bug report concluded that the program file > > name after the pipe needs to be quoted, in order for it to work with > > file names that use forward- and back-slashes alike. I can solve that > > problem for rgrep (and for other similar commands) by tweaking the > > templates used by grep.el, so as to quote the %s after the pipe > > character `|'. Would that be an okay solution? > > I think this is an acceptable solution, and agree that changing cmdproxy > to handle this intelligently sounds like a nightmare. Okay, fixed in grep.el (revno 100367 on the emacs-23 branch). > > The disadvantage is, of course, that similar solutions will have to be > > implemented for each Emacs command that launches a shell pipeline. > > Let's just fix these individually as the problems are reported. I found only 2 more instances of this that need to be fixed. One of them is in jka-compr.el, where it calls `dd' in a pipe. I fixed that one. The other one is in tramp.el, which uses shell pipelines a lot; however, the only ones that need to be fixed are those that invoke _local_ programs, not remote programs, as the latter will not be on a Windows machine. Michael, could you please take care of that (on the emacs-23 branch)? I gather that you have your master repository, so doing it from there would be less hassle for you, and you know the semantics of each pipeline better than I do. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 09 12:59:47 2011 Received: (at 7785) by debbugs.gnu.org; 9 Jan 2011 17:59:47 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbzYR-0000RK-AL for submit@debbugs.gnu.org; Sun, 09 Jan 2011 12:59:47 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbzYO-0000R8-Kx for 7785@debbugs.gnu.org; Sun, 09 Jan 2011 12:59:45 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LER00600ONGUK00@a-mtaout22.012.net.il> for 7785@debbugs.gnu.org; Sun, 09 Jan 2011 20:07:06 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.131.253]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LER005RAOZTWR80@a-mtaout22.012.net.il>; Sun, 09 Jan 2011 20:07:06 +0200 (IST) Date: Sun, 09 Jan 2011 20:07:06 +0200 From: Eli Zaretskii Subject: Re: bug#7785: bug#6784: bug#7785: rgrep is broken on woe32 In-reply-to: <4D28E175.2040001@gmail.com> To: Laimonas =?UTF-8?Q?V=C4=97bra?= Message-id: <83hbdij6id.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: QUOTED-PRINTABLE X-012-Sender: halo1@inter.net.il References: <87d3oc17oo.fsf@telefonica.net> <87k4ijxeh2.fsf@wanadoo.es> <874o9nx9vx.fsf@wanadoo.es> <87mxnbkt50.fsf@stupidchicken.com> <4D28E175.2040001@gmail.com> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 7785 Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org, cyd@stupidchicken.com, sds@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > Date: Sun, 09 Jan 2011 00:13:09 +0200 > From: Laimonas V=C4=97bra > Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org, Sam Steingold >=20 > As long as cmdproxy is meant to pass commands (and in principle; ac= ting=20 > as a proxy and dealing with various shells and with different their= =20 > behaviours, requirements) to the particular shell (cmd.exe), it's b= est=20 > to fix this bug in a cmdproxy, because this bug is only the =E2= =80=9Eproblem=E2=80=9C of=20 > the cmd.exe. That's true, but quoting a file name with ".." can never do any trouble to any reasonable shell, can it? Even cmd.exe doesn't mind i= f we quote a program file name with backslashes. Parsing quotes and treating them correctly is a large portion of what cmd.exe does when it processes a command line. If we are going to invest the non-trivial effort required for that, I'd rather we emulat= e cmd.exe entirely in cmdproxy, because doing that would allow us to resolve several other issues that are currently misfeatures or that need kludgey workarounds. If someone wants to bite the bullet and submit patches for that, they will be most welcome (for the trunk). But in order to fix this problem safely on the release branch that will enter a feature freeze in 2 weeks or so, we cannot introduce invasive changes like that. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 09 14:49:40 2011 Received: (at 7785) by debbugs.gnu.org; 9 Jan 2011 19:49:40 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pc1Gl-0003XZ-7w for submit@debbugs.gnu.org; Sun, 09 Jan 2011 14:49:39 -0500 Received: from mailout-de.gmx.net ([213.165.64.23] helo=mail.gmx.net) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Pc1Gh-0003XG-Q4 for 7785@debbugs.gnu.org; Sun, 09 Jan 2011 14:49:37 -0500 Received: (qmail invoked by alias); 09 Jan 2011 19:56:58 -0000 Received: from p57BBC06B.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.192.107] by mail.gmx.net (mp029) with SMTP; 09 Jan 2011 20:56:58 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+glzcH8fWgZ/BU4Gs9ErbnQ2VsiBGQTCom77Z/JF sDrvXkcZ+RaKUw From: Michael Albinus To: Eli Zaretskii Subject: Re: bug#6784: bug#7785: rgrep is broken on woe32 References: <87d3oc17oo.fsf@telefonica.net> <87k4ijxeh2.fsf@wanadoo.es> <874o9nx9vx.fsf@wanadoo.es> <87mxnbkt50.fsf@stupidchicken.com> <83ipxyj6ub.fsf@gnu.org> Date: Sun, 09 Jan 2011 20:56:48 +0100 In-Reply-To: <83ipxyj6ub.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 09 Jan 2011 19:59:56 +0200") Message-ID: <87vd1xonpb.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 7785 Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org, Chong Yidong , sds@gnu.org, 6784-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Eli Zaretskii writes: > Michael, could you please take care of that (on the emacs-23 branch)? > I gather that you have your master repository, so doing it from there > would be less hassle for you, and you know the semantics of each > pipeline better than I do. Thanks. I'll do next days. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 10 15:50:43 2011 Received: (at 7785) by debbugs.gnu.org; 10 Jan 2011 20:50:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PcOhP-00039D-7A for submit@debbugs.gnu.org; Mon, 10 Jan 2011 15:50:43 -0500 Received: from mailout-de.gmx.net ([213.165.64.23] helo=mail.gmx.net) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1PcOhK-00038n-Qf for 7785@debbugs.gnu.org; Mon, 10 Jan 2011 15:50:41 -0500 Received: (qmail invoked by alias); 10 Jan 2011 20:58:03 -0000 Received: from p57BBD461.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.212.97] by mail.gmx.net (mp005) with SMTP; 10 Jan 2011 21:58:03 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18EbAkOtjAEtKdOhDO5UQ4b9w5RlwMtQ9Sk96T++V OZ+fkKuXmls+bA From: Michael Albinus To: Eli Zaretskii Subject: Re: bug#6784: bug#7785: rgrep is broken on woe32 References: <87d3oc17oo.fsf@telefonica.net> <87k4ijxeh2.fsf@wanadoo.es> <874o9nx9vx.fsf@wanadoo.es> <87mxnbkt50.fsf@stupidchicken.com> <83ipxyj6ub.fsf@gnu.org> Date: Mon, 10 Jan 2011 21:57:52 +0100 In-Reply-To: <83ipxyj6ub.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 09 Jan 2011 19:59:56 +0200") Message-ID: <87hbdgo4rz.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 7785 Cc: ofv@wanadoo.es, 7785@debbugs.gnu.org, Chong Yidong , sds@gnu.org, 6784@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Eli Zaretskii writes: > Michael, could you please take care of that (on the emacs-23 branch)? > I gather that you have your master repository, so doing it from there > would be less hassle for you, and you know the semantics of each > pipeline better than I do. Thanks. I've found 3 places to patch in tramp.el, fixed in the emacs-23 branch. Under GNU/Linux I could not observe any regression. However, I cannot test under Windows - could somebody, please, check it with a new build? It shall be sufficient to open a large (>10kB) remote file, using the plink method. Best regards, Michael. From unknown Sat Jun 14 17:58:15 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 08 Feb 2011 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator