FYI, zgrep -f - vs. portability

2009-10-10 Thread Jim Meyering
I've applied Carl's patch, and then adjusted it so that zgrep is more portable, but anything that pokes around in /proc/$$/fd can't claim much in the way of portability, so it's sure to fail elsewhere. If someone can propose a better way (patches welcome!), or point out a system on which this appro

Re: Rare issue in ignoring padding

2009-10-10 Thread Jim Meyering
Daniel Barkalow wrote: > The code to ignore trailing zeros from: > > * gzip.c (get_method): Don't complain about trailing zeros at > the end of a gzipped file, as they're commonly appended to fill > out a block (e.g. by GNU tar). > > has a rare bug: if there is exactly one t