Re: [PATCH] archive: add test testing MIME for created archive through compression filter From: Junio C Hamano <hidden> Date: 2021-10-11 15:49:09 Bagas Sanjaya [off-list ref] 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
Keyboard shortcuts hback out one level jnext message in thread kprevious message in thread ldrill in Escclose help / fold thread tree ?toggle this help