From: Junio C Hamano Date: Tue, 19 Jun 2018 18:06:06 GMT Subject: Re: t5562: gzip -k is not portable Message-ID: In-Reply-To: <5ee7a65d-63e1-aa6a-c3c1-663c092d0efe@web.de> Torsten Bögershausen writes: > Hej Max, > > t5562 fails here under MacOS: > "gzip -k"  is not portable. Sigh. Perhaps -c would help. Or do BSD implementations also lack -c? t/t5562-http-backend-content-length.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/t5562-http-backend-content-length.sh b/t/t5562-http-backend-content-length.sh index 8040d80e04..98b6543827 100755 --- a/t/t5562-http-backend-content-length.sh +++ b/t/t5562-http-backend-content-length.sh @@ -61,9 +61,9 @@ test_expect_success 'setup' ' ' test_expect_success GZIP 'setup, compression related' ' - gzip -k fetch_body && + gzip -c fetch_body >fetch_body.gz && test_copy_bytes 10 fetch_body.gz.trunc && - gzip -k push_body && + gzip -c push_body >push_body.gz && test_copy_bytes 10 push_body.gz.trunc '