From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) Description of problem: a grep of a fairly large file takes ~6 seconds when the users shell is bash. When it is tcsh it takes > 860 seconds. This is consistent and 100% reproducable across redhat 8.0 and 9.0 versions even fully patched. Command line example: # echo $SHELL /bin/bash # ls -l total 383592 drwx------ 2 root root 16384 Jul 15 05:01 lost+found -rw-r--r-- 1 root root 388795360 Oct 14 09:07 singletons.tblastn.pep # time grep -c ">" singletons.tblastn.pep 632930 real 0m6.718s user 0m0.260s sys 0m0.670s # tcsh # time grep -c ">" singletons.tblastn.pep 632930 862.170u 0.910s 14:50.46 96.9% 0+0k 0+0io 163pf+0w # Version-Release number of selected component (if applicable): tcsh-6.12-4 How reproducible: Always Steps to Reproduce: 1. time grep -c ">" filename (under bash) 2. time grep -c ">" filename (under tcsh) 3. Actual Results: tcsh takes 862 seconds while bash takes 6.7 s Expected Results: times should be consistent Additional info:
This might be a locale issue. Please attach the output of (which grep) and (locale) under both bash and tcsh. The version of grep (as reported by (rpm -q grep)) is also important. Thanks.
Please reopen this report if you can reproduce the problem on a recent release and you can provide the requested data. Thank you.