From unknown Sat Sep 06 02:33:17 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#10074 <10074@debbugs.gnu.org> To: bug#10074 <10074@debbugs.gnu.org> Subject: Status: 23.2; emacs rgrep on Windows/Cygwin: FIND: Parameter format not correct Reply-To: bug#10074 <10074@debbugs.gnu.org> Date: Sat, 06 Sep 2025 09:33:17 +0000 retitle 10074 23.2; emacs rgrep on Windows/Cygwin: FIND: Parameter format n= ot correct reassign 10074 emacs submitter 10074 xahlee@gmail.com severity 10074 normal tag 10074 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 19 01:38:06 2011 Received: (at submit) by debbugs.gnu.org; 19 Nov 2011 06:38:06 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RReYv-0002z4-Nc for submit@debbugs.gnu.org; Sat, 19 Nov 2011 01:38:06 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RReYr-0002ye-Kd for submit@debbugs.gnu.org; Sat, 19 Nov 2011 01:38:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RReXr-00082n-PN for submit@debbugs.gnu.org; Sat, 19 Nov 2011 01:37:00 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,BODY_8BITS, FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:58607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RReXr-00082j-Nu for submit@debbugs.gnu.org; Sat, 19 Nov 2011 01:36:59 -0500 Received: from eggs.gnu.org ([140.186.70.92]:49087) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RReXq-00045o-NW for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2011 01:36:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RReXp-00082J-DP for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2011 01:36:58 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:44291) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RReXp-00081s-4x for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2011 01:36:57 -0500 Received: by wwe32 with SMTP id 32so5057611wwe.30 for ; Fri, 18 Nov 2011 22:36:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Xy8fftdVXE2YuOGVrHtU0ga/V9joGe+pYc9b2AFtLG0=; b=H9YmSH9MGg+f2msrmjEZ/zaWsNgMRv9bmWMV1M7dnDwMRvkyy/ZdCF2ilK646E5E3t Pnj+to+ZSIE4xwOsg4XOa3bnGMXj/qyMfvOBcqcPHvz28t809TnIc+f+T8KefE9W1BOY O39zpqayx+a4SynAE1WY9T36rDVd8Eiqogvvs= MIME-Version: 1.0 Received: by 10.227.60.85 with SMTP id o21mr4024842wbh.0.1321684615679; Fri, 18 Nov 2011 22:36:55 -0800 (PST) Received: by 10.216.1.6 with HTTP; Fri, 18 Nov 2011 22:36:55 -0800 (PST) Date: Fri, 18 Nov 2011 22:36:55 -0800 Message-ID: Subject: 23.2; emacs rgrep on Windows/Cygwin: FIND: Parameter format not correct From: Xah Lee To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.1 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: xahlee@gmail.com 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.3 (-----) This seems to be a bug. Steps to reproduce: =E2=80=A2 Start GNU Emacs with -Q. =E2=80=A2 call =E2=80=9Crgrep=E2=80=9D. Search for anything. =E2=80=A2 You get the following result: =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80 -*- mode: grep; default-directory: "c:/Users/h3/web/xahlee_org/emacs/" -*- Grep started at Thu Nov 17 00:49:37 find . "(" -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 "*.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 "*" -o -iname ".*" ")" -exec grep -i -n "grep" {} NUL ";" FIND: Parameter format not correct Grep exited abnormally with code 2 at Thu Nov 17 00:49:37 =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80 GNU Emacs 23.2.1 (i386-mingw-nt6.1.7601) of 2010-05-08 on G41R2F1 Windowing system distributor `Microsoft Corp.', version 6.1.7601 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/xpm/inc= lude' I'm also running Cygwin for the unix util grep. It appears, that the problem is because emacs is calling cmd.exe's grep, not cygwin. Perhaps `grep-compute-defaults' should know about it. Xah From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 19 07:01:00 2011 Received: (at 10074-done) by debbugs.gnu.org; 19 Nov 2011 12:01:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RRjbQ-0002ZJ-39 for submit@debbugs.gnu.org; Sat, 19 Nov 2011 07:01:00 -0500 Received: from mtaout23.012.net.il ([80.179.55.175]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RRjbM-0002Z6-Nf for 10074-done@debbugs.gnu.org; Sat, 19 Nov 2011 07:00:58 -0500 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LUW00600P6QX700@a-mtaout23.012.net.il> for 10074-done@debbugs.gnu.org; Sat, 19 Nov 2011 13:59:53 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.237.133]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LUW006TJPBSWL10@a-mtaout23.012.net.il>; Sat, 19 Nov 2011 13:59:53 +0200 (IST) Date: Sat, 19 Nov 2011 13:58:04 +0200 From: Eli Zaretskii Subject: Re: bug#10074: 23.2; emacs rgrep on Windows/Cygwin: FIND: Parameter format not correct In-reply-to: X-012-Sender: halo1@inter.net.il To: xahlee@gmail.com Message-id: <83mxbsb9yr.fsf@gnu.org> References: X-Spam-Score: -1.7 (-) X-Debbugs-Envelope-To: 10074-done Cc: 10074-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: -1.7 (-) > Date: Fri, 18 Nov 2011 22:36:55 -0800 > From: Xah Lee > > FIND: Parameter format not correct This is Windows find.exe, which is a completely different program, getting confused over the way Emacs calls it. You need to change your Path to have the ported GNU find.exe earlier on Path than C:\WINDOWS\system32 (or wherever the Windows program lives), or rename the GNU find.exe to something like gfind.exe and customize Emacs to call that instead. I'm closing this bug, because its reason is your system configuration. Emacs cannot do anything about that, it just calls the first find.exe it finds along your Path. > It appears, that the problem is because emacs is calling cmd.exe's > grep, not cygwin. The problem is with `find', not with `grep'. > Perhaps `grep-compute-defaults' should know about it. grep-compute-defaults has nothing to do with the problem, so it cannot fix it. From unknown Sat Sep 06 02:33:17 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 17 Dec 2011 12:24:03 +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