bug-gzip
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gzip --force bug


From: Mark Adler
Subject: Re: gzip --force bug
Date: Wed, 3 Feb 2010 07:28:33 -0800

On Feb 3, 2010, at 1:22 AM, Jim Meyering wrote:
> To do that, I commented out the test that ran this:
> 
>    (echo x;echo y|gzip)|gzip -cdf|wc -c
> 
> Even with your patch, that still prints 24.
> Should it print 4, like this variant does?
> 
>    (echo x|gzip;echo y)|gzip -cdf|wc -c


Jim,

No, the first one should print 24, and the second one should print 4 (assuming 
a new line is one byte).  Once gzip starts a straight copy, it copies to the 
end without trying to search for a gzip stream in the middle.

Mark





reply via email to

[Prev in Thread] Current Thread [Next in Thread]