Subject: Re: [PATCH] archive: add test testing MIME for created archive through compression filter

From: Junio C Hamano <[email-masked]>
Date: Mon, 11 Oct 2021 08:48:53 -0700

Bagas Sanjaya <[email-masked]> writes:

> +	cat >expect <<EOF &&
> +HEAD.tar.bz2: application/x-bzip2; charset=binary
> +HEAD.tar.gz:  application/gzip; charset=binary
> +HEAD.tar.xz:  application/x-xz; charset=binary
> +EOF

Use <<-EOF and you can align here-document to the script.

> +	file -i HEAD.tar.bz2 HEAD.tar.gz HEAD.tar.xz 2>/dev/null >actual &&

This looks super un-portable.

  https://pubs.opengroup.org/onlinepubs/9699919799/utilities/file.html