From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sven Joachim Newsgroups: gmane.emacs.bugs Subject: bug#2693: grep-find with camelCase returns error of 123 Date: Tue, 17 Mar 2009 10:15:02 +0100 Message-ID: <8763i8y0h5.fsf@turtle.gmx.de> References: <56B65F1D-C3B9-4094-A49F-07A0A6C21BDC@xahlee.org> Reply-To: Sven Joachim , 2693@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1237283309 25395 80.91.229.12 (17 Mar 2009 09:48:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Mar 2009 09:48:29 +0000 (UTC) Cc: 2693@emacsbugs.donarmstrong.com To: xah lee Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 17 10:49:45 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LjVvc-00059y-Nq for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Mar 2009 10:49:45 +0100 Original-Received: from localhost ([127.0.0.1]:35849 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjVuG-0004js-ED for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Mar 2009 05:48:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LjVpx-0002ra-1x for bug-gnu-emacs@gnu.org; Tue, 17 Mar 2009 05:43:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LjVpr-0002n9-9v for bug-gnu-emacs@gnu.org; Tue, 17 Mar 2009 05:43:51 -0400 Original-Received: from [199.232.76.173] (port=47665 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjVpq-0002mn-S6 for bug-gnu-emacs@gnu.org; Tue, 17 Mar 2009 05:43:46 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:39073) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LjVpq-00022L-Bl for bug-gnu-emacs@gnu.org; Tue, 17 Mar 2009 05:43:46 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2H9hgKw010469; Tue, 17 Mar 2009 02:43:43 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n2H9P44I005640; Tue, 17 Mar 2009 02:25:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Sven Joachim Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 17 Mar 2009 09:25:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2693 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2693-submit@emacsbugs.donarmstrong.com id=B2693.12372813134298 (code B ref 2693); Tue, 17 Mar 2009 09:25:04 +0000 Original-Received: (at 2693) by emacsbugs.donarmstrong.com; 17 Mar 2009 09:15:13 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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 Original-Received: (qmail invoked by alias); 17 Mar 2009 09:15:03 -0000 Original-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 Original-Received: by turtle.gmx.de (Postfix, from userid 1000) id 2D2B0354AF; Tue, 17 Mar 2009 10:15:02 +0100 (CET) In-Reply-To: <56B65F1D-C3B9-4094-A49F-07A0A6C21BDC@xahlee.org> (xah lee's message of "Mon, 16 Mar 2009 17:41:15 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.53 X-MIME-Autoconverted: from 8bit to quoted-printable by rzlab.ucr.edu id n2H9hgKw010469 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 17 Mar 2009 05:43:51 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:26428 Archived-At: 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: > =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 . -na= me "*txt" - > 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 = 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 > 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 pestiLen= ce=E2=80=9D. 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 =E2=80=9Cfind=E2=80=9D, =E2=80=9Cgrep= =E2=80=9D, =E2=80=9Cxargs=E2=80=9D 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