From unknown Mon Aug 18 14:15:52 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#2693 <2693@debbugs.gnu.org> To: bug#2693 <2693@debbugs.gnu.org> Subject: Status: grep-find with camelCase returns error of 123 Reply-To: bug#2693 <2693@debbugs.gnu.org> Date: Mon, 18 Aug 2025 21:15:52 +0000 retitle 2693 grep-find with camelCase returns error of 123 reassign 2693 emacs submitter 2693 xah lee severity 2693 minor tag 2693 notabug thanks From xah@xahlee.org Mon Mar 16 17:43:13 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 17 Mar 2009 00:43:13 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2H0hAnM001693 for ; Mon, 16 Mar 2009 17:43:11 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LjNOf-0007G4-RC for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2009 20:43:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LjNOe-0007FS-11 for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2009 20:43:09 -0400 Received: from [199.232.76.173] (port=60928 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjNOd-0007FP-UT for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2009 20:43:07 -0400 Received: from mout.perfora.net ([74.208.4.194]:58195) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LjNOd-0001E5-JI for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2009 20:43:07 -0400 Received: from [192.168.1.2] (c-24-6-175-142.hsd1.ca.comcast.net [24.6.175.142]) by mrelay.perfora.net (node=mrus1) with ESMTP (Nemesis) id 0MKpCa-1LjNOS0eUI-000d76; Mon, 16 Mar 2009 20:42:57 -0400 Mime-Version: 1.0 (Apple Message framework v753.1) Content-Transfer-Encoding: quoted-printable Message-Id: <56B65F1D-C3B9-4094-A49F-07A0A6C21BDC@xahlee.org> Content-Type: text/plain; charset=UTF-8; delsp=yes; format=flowed To: bug-gnu-emacs@gnu.org From: xah lee Subject: grep-find with camelCase returns error of 123 Date: Mon, 16 Mar 2009 17:41:15 -0700 X-Mailer: Apple Mail (2.753.1) X-Provags-ID: V01U2FsdGVkX19sj7Ld9Ga9LcyX/KNThZi2+84mNCGM0Z6DX4e 57dbKbgjgNiVWEYDFt5flpHIdfEnb49aqcO4I0Ad1c5u13L6+Z pjJBGrB++Ncjo/SPoGNLg== X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. From: Xah Lee To: bug-gnu-emacs@gnu.org Subject: grep-find with camelCase returns error of 123 --text follows this line-- this is possibly a bug. Summary: when using M-x grep-find, on a search word with camelCase, i =20= get this error: =E2=80=9CGrep exited abnormally with code 123 at Mon Mar 16 17:22:46=E2=80= =9D. Reproduce steps: =E2=80=A2 start emacs 22.x with -q =E2=80=A2 M-x grep-find =E2=80=A2 Try to search a word with camelCase. e.g. =E2=80=9Cfind . = -name "*txt" -=20 print0 | xargs -0 -e grep -nH -e pestiLence=E2=80=9D =E2=80=A2 Emacs gives the error mentioned above. This is reproducible in: =E2=80=A2 GNU Emacs 22.2.1 (powerpc-apple-darwin8.11.0, Carbon Version =20= 1.6.0) of 2008-04-05 on g5.tokyo.stp.isas.jaxa.jp =E2=80=A2 GNU Emacs 22.0.50.1 (powerpc-apple-darwin8.11.0, GTK+ Version =20= 2.6.10) of 2009-03-01 on xahg5.local This problem happens also when called with shell-command. e.g. M-x =20 shell-command, then use =E2=80=9Cfind . -name "*txt" -print0 | xargs -0 -e grep -nH -e = pestiLence=E2=80=9D. However, this does not happen when called in shell, e.g. M-x shell. =20 Nor when i simply run it in a Terminal running bash. (so, prob not =20 having to do with the unix's =E2=80=9Cfind=E2=80=9D, =E2=80=9Cgrep=E2=80=9D= , =E2=80=9Cxargs=E2=80=9D =20 programs on my computer.) Xah =E2=88=91 http://xahlee.org/ =E2=98=84 From svenjoac@gmx.de Tue Mar 17 02:15:13 2009 Received: (at 2693) by emacsbugs.donarmstrong.com; 17 Mar 2009 09:15:13 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.9 required=4.0 tests=FOURLA,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id n2H9F90D003276 for <2693@emacsbugs.donarmstrong.com>; Tue, 17 Mar 2009 02:15:10 -0700 Received: (qmail invoked by alias); 17 Mar 2009 09:15:03 -0000 Received: from p54864177.dip.t-dialin.net (EHLO turtle.gmx.de) [84.134.65.119] by mail.gmx.net (mp007) with SMTP; 17 Mar 2009 10:15:03 +0100 X-Authenticated: #28250155 X-Provags-ID: V01U2FsdGVkX19++tZZIg5+qo129H5FYg/mVsIEsoS0IZOhX9qdXm SzcpKqdtfAalTf Received: by turtle.gmx.de (Postfix, from userid 1000) id 2D2B0354AF; Tue, 17 Mar 2009 10:15:02 +0100 (CET) From: Sven Joachim To: xah lee Cc: 2693@debbugs.gnu.org Subject: Re: bug#2693: grep-find with camelCase returns error of 123 References: <56B65F1D-C3B9-4094-A49F-07A0A6C21BDC@xahlee.org> Date: Tue, 17 Mar 2009 10:15:02 +0100 In-Reply-To: <56B65F1D-C3B9-4094-A49F-07A0A6C21BDC@xahlee.org> (xah lee's message of "Mon, 16 Mar 2009 17:41:15 -0700") Message-ID: <8763i8y0h5.fsf@turtle.gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.53 On 2009-03-17 01:41 +0100, xah lee wrote: > Summary: when using M-x grep-find, on a search word with camelCase, i > get this error: > “Grep exited abnormally with code 123 at Mon Mar 16 17:22:46”. > > Reproduce steps: > > • start emacs 22.x with -q > • M-x grep-find > • Try to search a word with camelCase. e.g. “find . -name "*txt" - > print0 | xargs -0 -e grep -nH -e pestiLence” > • Emacs gives the error mentioned above. > > This is reproducible in: > > • GNU Emacs 22.2.1 (powerpc-apple-darwin8.11.0, Carbon Version 1.6.0) > of 2008-04-05 on g5.tokyo.stp.isas.jaxa.jp > • GNU Emacs 22.0.50.1 (powerpc-apple-darwin8.11.0, GTK+ Version > 2.6.10) of 2009-03-01 on xahg5.local > > This problem happens also when called with shell-command. e.g. M-x > shell-command, then use > “find . -name "*txt" -print0 | xargs -0 -e grep -nH -e pestiLence”. This is not surprising, since 123 is xargs' exit code if any of the command invocations failed, see the "EXIT STATUS" section in xargs(1). > However, this does not happen when called in shell, e.g. M-x > shell. Nor when i simply run it in a Terminal running bash. (so, prob > not having to do with the unix's “find”, “grep”, “xargs” programs on > my computer.) Your shell may not report failure, but unless one of your files contains pestiLence, the above command will still finish with an exit code of 123. Type "echo $?" to convince yourself. Maybe it would be possible to special-case an exit code of 123 in grep-find, but the problem is that this exit code does not tell if there were matches or not. Sven From jasonrumney@gmail.com Tue Mar 17 05:24:46 2009 Received: (at 2693) by emacsbugs.donarmstrong.com; 17 Mar 2009 12:24:46 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.180]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2HCOhlK018943 for <2693@emacsbugs.donarmstrong.com>; Tue, 17 Mar 2009 05:24:44 -0700 Received: by wa-out-1112.google.com with SMTP id k17so4822369waf.1 for <2693@emacsbugs.donarmstrong.com>; Tue, 17 Mar 2009 05:24:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=lowet9glzCbo8kins8YKN2Unp1IMIIppYrJgLSixvy8=; b=sBm0Eyn1go0OlvzFpxYdJ+Wn2c/jneEkr6OSWN76NGkfgFnwYMk+XZy/yU/Gbw5Aad JlpE0/8ad/h16UPJql8z36Fr+IH2o/8kK8IpE/RyINiytRl8tZ2mk7PPbJsgh4bXwv1r wTqyB7l86XTzF3V9Jhf3YnXCMwCCEfAb8y+x8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=sj76rfknBfcgiCsvidwnO5QO+pCU/pioMHEKzymZASKKBTWsPBcbQwDTrgciQsI4kH lM6K41dXUjAlMhrwcDGp4UsvS7SRYr7RQ/NHWvX1huNtz8ivhf2XNe0nLZ23m6/Jj0Z3 11/EE3iP+rQis1xvpITdJZcr1owqlT3P4FFQA= Received: by 10.114.158.1 with SMTP id g1mr4217967wae.126.1237292682918; Tue, 17 Mar 2009 05:24:42 -0700 (PDT) Received: from ?192.168.249.26? ([118.101.24.182]) by mx.google.com with ESMTPS id j26sm6301657waf.24.2009.03.17.05.24.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 17 Mar 2009 05:24:42 -0700 (PDT) Sender: Jason Rumney Message-ID: <49BF9670.7060507@gnu.org> Date: Tue, 17 Mar 2009 20:24:16 +0800 From: Jason Rumney User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: xah lee , 2693@debbugs.gnu.org Subject: Re: bug#2693: grep-find with camelCase returns error of 123 References: <56B65F1D-C3B9-4094-A49F-07A0A6C21BDC@xahlee.org> In-Reply-To: <56B65F1D-C3B9-4094-A49F-07A0A6C21BDC@xahlee.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit xah lee wrote: > • GNU Emacs 22.0.50.1 (powerpc-apple-darwin8.11.0, GTK+ Version > 2.6.10) of 2009-03-01 on xahg5.local Where did this come from? The version number suggests a CVS checkout, but CVS hasn't been at 22.0.50 since 2006. From xah@xahlee.org Tue Mar 17 05:30:03 2009 Received: (at 2693) by emacsbugs.donarmstrong.com; 17 Mar 2009 12:30:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mout.perfora.net (mout.perfora.net [74.208.4.195]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2HCU0E4020134 for <2693@emacsbugs.donarmstrong.com>; Tue, 17 Mar 2009 05:30:01 -0700 Received: from [192.168.1.2] (c-24-6-175-142.hsd1.ca.comcast.net [24.6.175.142]) by mrelay.perfora.net (node=mrus1) with ESMTP (Nemesis) id 0MKpCa-1LjYQd45u4-000clR; Tue, 17 Mar 2009 08:29:59 -0400 In-Reply-To: <49BF9670.7060507@gnu.org> References: <56B65F1D-C3B9-4094-A49F-07A0A6C21BDC@xahlee.org> <49BF9670.7060507@gnu.org> Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=UTF-8; delsp=yes; format=flowed Message-Id: <860BD09E-7DEB-4F73-96F8-F88114C26B6B@xahlee.org> Cc: 2693@debbugs.gnu.org Content-Transfer-Encoding: quoted-printable From: xah lee Subject: Re: bug#2693: grep-find with camelCase returns error of 123 Date: Tue, 17 Mar 2009 05:28:07 -0700 To: Jason Rumney X-Mailer: Apple Mail (2.753.1) X-Provags-ID: V01U2FsdGVkX196hXcHJpu/N5u5hXwk1YlSO9qrKykf/ydejcc NWnBtalYw3WxNlIE742uuIK6R46ZqGecmcaKjGmE7bxgEVNFg8 iFO4gPlDecNBlQX5pRVmg== On Mar 17, 2009, at 5:24 AM, Jason Rumney wrote: > > xah lee wrote: >> =E2=80=A2 GNU Emacs 22.0.50.1 (powerpc-apple-darwin8.11.0, GTK+ = Version =20 >> 2.6.10) of 2009-03-01 on xahg5.local > > Where did this come from? The version number suggests a CVS =20 > checkout, but CVS hasn't been at 22.0.50 since 2006. Not sure exactly, but i got it from fink. http://pdb.finkproject.org/pdb/package.php/emacs22-carbon I haven't read in detail the other reply yet... will reply soon if i =20 have good info. Xah =E2=88=91 http://xahlee.org/ =E2=98=84= From rgm@gnu.org Fri Mar 20 11:52:02 2009 Received: (at control) by emacsbugs.donarmstrong.com; 20 Mar 2009 18:52:02 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.0 required=4.0 tests=VALID_BTS_CONTROL, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2KIpx9s001897 for ; Fri, 20 Mar 2009 11:52:00 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Lkjp1-0001wD-An; Fri, 20 Mar 2009 14:51:59 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18883.58831.196202.892065@fencepost.gnu.org> Date: Fri, 20 Mar 2009 14:51:59 -0400 From: Glenn Morris To: control Subject: control message X-Debbugs-No-Ack: yes severity 2693 minor tags 2693 notabug reassign 2728 spam close 2730 From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 03 14:51:22 2011 Received: (at control) by debbugs.gnu.org; 3 Jul 2011 18:51: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 1QdRlK-0003qh-2y for submit@debbugs.gnu.org; Sun, 03 Jul 2011 14:51:22 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdRlI-0003qU-25 for control@debbugs.gnu.org; Sun, 03 Jul 2011 14:51:20 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QdRl6-0004x7-3X for control@debbugs.gnu.org; Sun, 03 Jul 2011 20:51:08 +0200 Date: Sun, 03 Jul 2011 20:51:07 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Magne Ingebrigtsen Subject: control message for bug #2693 X-MailScanner-ID: 1QdRl6-0004x7-3X X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1310323869.22453@is0cwln7SIjxXdgILzIJcw X-Spam-Status: No X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: control 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 (--) close 2693 From unknown Mon Aug 18 14:15:52 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 01 Aug 2011 11:24:06 +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