Why .tar.gz files can't be combined with cat

11 points by gavinmorrow


MarkMLl

ISTM that the issue isn't that the author lacks understanding of tar and gzip, but that the lacks understanding of cat: it was intended for simple text files, and won't work properly if- as a simple example- the first file is terminated by ^Z and subsequent software honours it as an EOF.

gspr

Whenever stuff like this is brought up, I'm reminded of how silly it is that we collect things with tar before compressing. The idea of separating file bundling and compression is fine, but tar is such a bad fit for modern usecases, no? Or at least non-streaming usecases. Whenever I write an NPZ file I find myself wondering whether I should start using foo.zip.lz or whatever instead. With the inner zip being uncompressed, of course.