xzgrep: incomplete results on larger files

Mark Felder feld at FreeBSD.org
Mon Sep 29 14:14:05 UTC 2014



On Sat, Sep 20, 2014, at 15:56, Stefan Ehmann wrote:
> I observed the following behavior on 10.1-BETA1 r271683M (amd64):
> 
> xzgrep doesn't search the complete file:
> $ seq 10000 | xz > seq.xz
> $ xzgrep -c . seq.xz
> 6775
> 
> Using regular grep works as expected:
> $ xzcat seq.xz | grep -c .
> 10000
> 
> Processing seems to stop after 32KB (uncompressed).
>

Wow, this is bizarre... Compression with xz is getting more and more
popular. This may have bit me a few times and I didn't even know it!

I'll see what I can to do bring this to someone's attention.


More information about the freebsd-stable mailing list