[Top][All Lists]
[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
- gzip --force bug, Mark Adler, 2010/02/02
- Re: gzip --force bug, Jim Meyering, 2010/02/03
- Re: gzip --force bug, Mark Adler, 2010/02/03
- Re: gzip --force bug, Jim Meyering, 2010/02/03
- Re: gzip --force bug,
Mark Adler <=
- Re: gzip --force bug, Mark Adler, 2010/02/03
- Re: gzip --force bug, Mark Adler, 2010/02/03
- Re: gzip --force bug, Mark Adler, 2010/02/03
- Re: gzip --force bug, Jim Meyering, 2010/02/04
- Re: gzip --force bug, Mark Adler, 2010/02/04
- Re: gzip --force bug, Jim Meyering, 2010/02/04
- gzip 1.4 warnings, Mark Adler, 2010/02/03