Re: t5562: gzip -k is not portable
- From
Torsten Bögershausen <tboegi@web.de>
- Date
- Jun 20, 2018, 15:41 UTC
- Message-ID
- <20180620154123.GB19382@tor.lan>
- In-Reply-To
- <20180620124006.GB7932@sigill.intra.peff.net>
On Wed, Jun 20, 2018 at 08:40:06AM -0400, Jeff King wrote:
Show 15 quoted lines
> On Wed, Jun 20, 2018 at 08:13:06AM +0200, Torsten Bögershausen wrote: > > > Good eyes, thanks. > > The "-f -c" combo works: > > > > - gzip -k fetch_body && > > + gzip -f -c fetch_body >fetch_body.gz && > > test_copy_bytes 10 <fetch_body.gz >fetch_body.gz.trunc && > > - gzip -k push_body && > > + gzip -f -c push_body >push_body.gz && > > Do we still need "-f"? With "-c" gzip is only writing to stdout, so we > should not need to force anything. > > -Peff
You are rigth, -f is not needed.
I was confusing stdout with terminal :-( Most often stdout is the terminal, but not here of course.