Scott Moser <[email protected]> wrote:

> I'm using gnu tar 1.28 as packaged on Ubuntu (xenial) and also tried 1.27
> on 15.10.  Please forgive me if this feature is already added upstream.
>
> Tar's determination of compression is very handy:

>
> My issue is that it only works if input is from a file.  The following do
> not work:
>    $ wget http://example.com/some.tar.gz | tar -tf -
>    $ tar -tf - < my.tar.gz
>    tar: Archive is compressed. Use -z option
>    tar: Error is not recoverable: exiting now

Did you try "star"? Star implementes this feature since 15 years and gtar's 
current auto-decompression features appeared after star offered the feature.

Jörg

-- 
 EMail:[email protected]                    (home) Jörg Schilling D-13353 Berlin
       [email protected] (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.org/private/ 
http://sourceforge.net/projects/schilytools/files/'

Reply via email to