Nicholas Marriott <[email protected]> wrote:

> Or if we must have compression flags just have one flag and let tar
> figure out the right tool to use. Having -Z -z -J -j etc etc is silly.

bsdtar and gtar detect compressed archives automatically and
transparently invoke the corresponding decompressor.

$ bsdtar tf foo.tar.xz
foo/
foo/bla
...

However, they can't automatically devine the desired type of
compression when creating an archive...  Actually, gtar can: If
given the -a flag, it will deduce the compressor to choose from the
archive name, e.g.

$ gtar caf foo.tar.bz2 foo

will call bzip2.

-- 
Christian "naddy" Weisgerber                          [email protected]

Reply via email to