Hi,
I have foo.tar.xz which file(1) correctly flags as "XZ compressed data"
tar --extract --file foo.tar.xz happily decompresses this. This is
already a surprise.
I'd have expected to be able to use -no-auto-compress to turn this
automatism off if I want tar to fail on the tar.xz file. This doesnt
work as well, the tar.xz is happily unpacked anyway.
The user story behind this weird issue is that tar --create
--auto-compress --file foo.tar.baz will happily write an uncompressed
tar file to foo.tar.baz if it doesn't recognize the suffix, and I'd like
to be able to diagnose this to fall back to foo.tar.gz to get at least a
bit of compession in that case.
Greetings
Marc