Re: [PATCH] archive: add test testing MIME for created archive through compression filter
Bagas Sanjaya <bagasdotme@gmail.com> writes:
Show 5 quoted lines
> + 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