From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.3; Linux; X11; en_US) (KHTML, like Gecko)
Description of problem:
1. grep hangs if one searches through a large number of files. it does not
seem to go through the list a file at a time.
Removing the MBS (patch 5) patch fixes this problem.
2. There is still the problem that if you give "*" as the file list it just sits
there for ever. Perhaps it is reading "." and ".." ?
This happens even after removing patch5. However, in this case if
one gives the extension of the files e.g. *.spec than it does the job.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. install grep
2. go to a directory containing a large number of files
3. grep string *
Confirmed. Thanks for spotting it.
Please try 2.5.1-34:
Solves the problem when extension is specified e.g.
grep perl *.spec
but hangs forever for
grep perl *
It will be to do with one particular file in the directory -- please
can you try to narrow down which it is? Thanks.
OK...... i had a file named "-" (I guess a freak vi accident). Removing
that solved it.
Sorry about that.
Wow, what are the odds of there being TWO causes for this problem?
Anyway, for future reference 'grep string ./*' avoids that sort of thing.
Thanks for the report. By the way, do you find grep to be any faster
Yes, definitely, I have just been searching something in the firefox source
tree and it was going very fast.