git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: t5562: gzip -k is not portable

From
Jeff King <peff@peff.net>
Date
Jun 20, 2018, 12:40 UTC
Message-ID
<20180620124006.GB7932@sigill.intra.peff.net>
In-Reply-To
<20180620061306.GA7813@tor.lan>
On Wed, Jun 20, 2018 at 08:13:06AM +0200, Torsten Bögershausen wrote:
Show 8 quoted lines
> 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
Previous: Torsten BögershausenNext: Torsten Bögershausen
Message 7 of 10 in “t5562: gzip -k is not portable”
  1. Torsten BögershausenJun 19, 2018
  2. Junio C HamanoJun 19, 2018
  3. Eric SunshineJun 19, 2018
  4. Torsten BögershausenJun 19, 2018
  5. Jeff KingJun 19, 2018
  6. Torsten BögershausenJun 20, 2018
  7. Jeff KingJun 20, 2018
  8. Torsten BögershausenJun 20, 2018
  9. Rodrigo CamposJun 19, 2018
  10. Rodrigo CamposJun 19, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.