GNU bug report logs -
#2693
grep-find with camelCase returns error of 123
Previous Next
Reported by: xah lee <xah <at> xahlee.org>
Date: Tue, 17 Mar 2009 00:50:04 UTC
Severity: minor
Tags: notabug
Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 2693 in the body.
You can then email your comments to 2693 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#2693
; Package
emacs
.
(Tue, 17 Mar 2009 00:50:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
xah lee <xah <at> xahlee.org>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Tue, 17 Mar 2009 00:50:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
From: Xah Lee <xah <at> xahlee.org>
To: bug-gnu-emacs <at> 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
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”.
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.)
Xah
∑ http://xahlee.org/
☄
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#2693
; Package
emacs
.
(Tue, 17 Mar 2009 09:25:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Sven Joachim <svenjoac <at> gmx.de>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Tue, 17 Mar 2009 09:25:04 GMT)
Full text and
rfc822 format available.
Message #10 received at 2693 <at> emacsbugs.donarmstrong.com (full text, mbox):
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
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#2693
; Package
emacs
.
(Tue, 17 Mar 2009 12:30:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jason Rumney <jasonr <at> gnu.org>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Tue, 17 Mar 2009 12:30:03 GMT)
Full text and
rfc822 format available.
Message #15 received at 2693 <at> emacsbugs.donarmstrong.com (full text, mbox):
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.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#2693
; Package
emacs
.
(Tue, 17 Mar 2009 12:40:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
xah lee <xah <at> xahlee.org>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Tue, 17 Mar 2009 12:40:05 GMT)
Full text and
rfc822 format available.
Message #20 received at 2693 <at> emacsbugs.donarmstrong.com (full text, mbox):
On Mar 17, 2009, at 5:24 AM, Jason Rumney wrote:
>
> 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.
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
have good info.
Xah
∑ http://xahlee.org/
☄
Severity set to `minor' from `normal'
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Fri, 20 Mar 2009 18:55:07 GMT)
Full text and
rfc822 format available.
Tags added: notabug
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Fri, 20 Mar 2009 18:55:07 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
2693 <at> debbugs.gnu.org and xah lee <xah <at> xahlee.org>
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 03 Jul 2011 18:52:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 01 Aug 2011 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 14 years and 20 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.