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