Package: grep
Version: 2.5.1.ds2-5
Severity: wishlist
Tags: upstream

I was trying to figure out why this caused grep to consume hundreds of
megs of vram (yes, I know that zgrep is from the gzip package):
  
  time echo |zgrep -Ff /dev/stdin /tmp/Contents-i386

zgrep is a shell wrapper which does essentially:

  gunzip |grep

So grep saw -Ff /dev/stdin, but stdin was not a newline, but rather a
200MB file (grep -Ff /tmp/Contents-i386 ./h).  I think grep should
have opened h to test its existence before reading the entire -Ff
file, and compiling (?) the patterns list, or whatever it's doing...


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to