[mdlug] grep bug?
    Robert Meier 
    list1c30fe42 at bellsouth.net
       
    Wed Apr 16 19:17:18 EDT 2008
    
    
  
Robert,
> A little sleuthing suggests that grep is stuck in some kind of infinite loop:
> I was wondering if folks here could confirm this behaviour on their
> boxes, especially on non-Ubuntu 7.10 installs.
> Here it is in script form:
Thank you for taking the time to write the script.
A clean test case like this will make debugging much easier.
Status: Demonstrated
  System: SuSE-10.0
  IA:	  x86
  X:	  xorg-x11-Xvnc-6.8.2-100
  The following was tried with identical results in
    non-graphical terminal
    konsole
    xterm
  bash> grep -V | head -1
  grep (GNU grep) 2.5.1
  bash> rpm -qf $(which grep)
  grep-2.5.1a-5
  bash> for mode in -i ''
        do
          for pat in ^ e
          do
            (echo hello | grep $mode --color=always -e $pat |
             head -c100 | wc -c )
          done
        done
  100
  19
  6
  19
Another country heard from,
-- 
Bob
  "My private keys are mine alone.
   My public keys to many shown.
   My secret keys with some are shared,
   But with only one message paired."
     -- Robert Meier 2001 excerpt from "Open-PGP Polka"
    
    
More information about the mdlug
mailing list