|
From: | Joerg Schilling |
Subject: | Re: [Bug-tar] feature request: determine compression type from stdin |
Date: | Thu, 29 Oct 2015 11:02:24 +0100 |
User-agent: | Heirloom mailx 12.5 7/5/10 |
Scott Moser <address@hidden> 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:address@hidden (home) Jörg Schilling D-13353 Berlin address@hidden (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.org/private/ http://sourceforge.net/projects/schilytools/files/'
[Prev in Thread] | Current Thread | [Next in Thread] |