GNU bug report logs -
#10728
lgrep fails with certain entries in grep-files-aliases
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10728 in the body.
You can then email your comments to 10728 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10728
; Package
emacs
.
(Sat, 04 Feb 2012 20:42:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Christoph Scholtes <cschol2112 <at> googlemail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 04 Feb 2012 20:42:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
The documentation of grep-files-aliases says:
*Alist for the FILES argument to `lgrep' and `rgrep'.
Certain aliases in that list do not work with lgrep.
For example, `cc' works fine with rgrep, but fails with lgrep with the
following recipe:
emacs -Q
M-x lgrep
Search for: main
in files: cc
In directory: ~/devel/emacs/trunk/src/
Result:
-*- mode: grep; default-directory: "~/devel/emacs/trunk/src/" -*-
Grep started at Sat Feb 4 13:37:18
grep --exclude=.\#\* --exclude=\*.o --exclude=\*\~ --exclude=\*.bin
--exclude=\*.lbin --exclude=\*.so --exclude=\*.a --exclude=\*.ln
--exclude=\*.blg --exclude=\*.bbl --exclude=\*.elc --exclude=\*.lof
--exclude=\*.glo --exclude=\*.idx --exclude=\*.lot --exclude=\*.fmt
--exclude=\*.tfm --exclude=\*.class --exclude=\*.fas --exclude=\*.lib
--exclude=\*.mem --exclude=\*.x86f --exclude=\*.sparcf --exclude=\*.dfsl
--exclude=\*.pfsl --exclude=\*.d64fsl --exclude=\*.p64fsl
--exclude=\*.lx64fsl --exclude=\*.lx32fsl --exclude=\*.dx64fsl
--exclude=\*.dx32fsl --exclude=\*.fx64fsl --exclude=\*.fx32fsl
--exclude=\*.sx64fsl --exclude=\*.sx32fsl --exclude=\*.wx64fsl
--exclude=\*.wx32fsl --exclude=\*.fasl --exclude=\*.ufsl
--exclude=\*.fsl --exclude=\*.dxl --exclude=\*.lo --exclude=\*.la
--exclude=\*.gmo --exclude=\*.mo --exclude=\*.toc --exclude=\*.aux
--exclude=\*.cp --exclude=\*.fn --exclude=\*.ky --exclude=\*.pg
--exclude=\*.tp --exclude=\*.vr --exclude=\*.cps --exclude=\*.fns
--exclude=\*.kys --exclude=\*.pgs --exclude=\*.tps --exclude=\*.vrs
--exclude=\*.pyc --exclude=\*.pyo -i -nH -e main *.cc *.cxx *.cpp *.C
*.CC *.c++
grep: *.cc: No such file or directory
grep: *.cxx: No such file or directory
grep: *.cpp: No such file or directory
grep: *.C: No such file or directory
grep: *.CC: No such file or directory
grep: *.c++: No such file or directory
Grep exited abnormally with code 2 at Sat Feb 4 13:37:18
This is Emacs trunk (r107094) on Debian Testing.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10728
; Package
emacs
.
(Sat, 04 Feb 2012 21:10:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 10728 <at> debbugs.gnu.org (full text, mbox):
> Date: Sat, 04 Feb 2012 13:40:21 -0700
> From: Christoph Scholtes <cschol2112 <at> googlemail.com>
>
> The documentation of grep-files-aliases says:
> *Alist for the FILES argument to `lgrep' and `rgrep'.
>
> Certain aliases in that list do not work with lgrep.
>
> For example, `cc' works fine with rgrep, but fails with lgrep with the
> following recipe:
>
> emacs -Q
> M-x lgrep
> Search for: main
> in files: cc
> In directory: ~/devel/emacs/trunk/src/
>
> Result:
>
> -*- mode: grep; default-directory: "~/devel/emacs/trunk/src/" -*-
> Grep started at Sat Feb 4 13:37:18
>
> grep --exclude=.\#\* --exclude=\*.o --exclude=\*\~ --exclude=\*.bin
> --exclude=\*.lbin --exclude=\*.so --exclude=\*.a --exclude=\*.ln
> --exclude=\*.blg --exclude=\*.bbl --exclude=\*.elc --exclude=\*.lof
> --exclude=\*.glo --exclude=\*.idx --exclude=\*.lot --exclude=\*.fmt
> --exclude=\*.tfm --exclude=\*.class --exclude=\*.fas --exclude=\*.lib
> --exclude=\*.mem --exclude=\*.x86f --exclude=\*.sparcf --exclude=\*.dfsl
> --exclude=\*.pfsl --exclude=\*.d64fsl --exclude=\*.p64fsl
> --exclude=\*.lx64fsl --exclude=\*.lx32fsl --exclude=\*.dx64fsl
> --exclude=\*.dx32fsl --exclude=\*.fx64fsl --exclude=\*.fx32fsl
> --exclude=\*.sx64fsl --exclude=\*.sx32fsl --exclude=\*.wx64fsl
> --exclude=\*.wx32fsl --exclude=\*.fasl --exclude=\*.ufsl
> --exclude=\*.fsl --exclude=\*.dxl --exclude=\*.lo --exclude=\*.la
> --exclude=\*.gmo --exclude=\*.mo --exclude=\*.toc --exclude=\*.aux
> --exclude=\*.cp --exclude=\*.fn --exclude=\*.ky --exclude=\*.pg
> --exclude=\*.tp --exclude=\*.vr --exclude=\*.cps --exclude=\*.fns
> --exclude=\*.kys --exclude=\*.pgs --exclude=\*.tps --exclude=\*.vrs
> --exclude=\*.pyc --exclude=\*.pyo -i -nH -e main *.cc *.cxx *.cpp *.C
> *.CC *.c++
> grep: *.cc: No such file or directory
> grep: *.cxx: No such file or directory
> grep: *.cpp: No such file or directory
> grep: *.C: No such file or directory
> grep: *.CC: No such file or directory
> grep: *.c++: No such file or directory
Why do you think this is a "failure"? There indeed are no files
matching these widlcards in the Emacs's src directory.
Reply sent
to
Christoph Scholtes <cschol2112 <at> googlemail.com>
:
You have taken responsibility.
(Sat, 04 Feb 2012 21:52:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Christoph Scholtes <cschol2112 <at> googlemail.com>
:
bug acknowledged by developer.
(Sat, 04 Feb 2012 21:52:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 10728-done <at> debbugs.gnu.org (full text, mbox):
On 2/4/2012 2:08 PM, Eli Zaretskii wrote:
> Why do you think this is a "failure"? There indeed are no files
> matching these widlcards in the Emacs's src directory.
I guess you are right. I compared it to rgrep where the result is
`Grep:exit [no match]' and the mode line says `Grep finished with no
matches found'. Whereas with lgrep you get an `abnormal exit' from grep
even if there are matches to some of the wild cards. This example was
contrived. I noticed this at work in a tree where there were .CC and
.cpp files present, but grep still exited abnormally.
There is no failure in Emacs. I'm closing this. Thanks.
Christoph
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 04 Mar 2012 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 169 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.