When piping a compressed archive to tar, it does not automatically
detect and subsequently take appropriate decompression action.

For example:

[EMAIL PROTECTED]:~/ubuntu/gnu-tar/tar-1.18/src$ wget -q -O-
http://ftp.gnu.org/gnu/tar/tar-1.19.tar.gz|tar xf -
tar: Archive is compressed. Use -z option
tar: Error is not recoverable: exiting now

or:

[EMAIL PROTECTED]:~/ubuntu/gnu-tar/tar-1.18/src$ wget -q -O-
http://ftp.gnu.org/gnu/tar/tar-1.19.tar.bz2|tar xf -
tar: Archive is compressed. Use -j option
tar: Error is not recoverable: exiting now

However, if the archive is stored on disk and specified on the
command-line, it works without this error message.  Obviously it can
detect the format when the data is piped in; shouldn't there be a way to
decompress while untarring?  After all, the following works:

[EMAIL PROTECTED]:~/ubuntu/gnu-tar/tar-1.18/src$ wget -q -O-
http://ftp.gnu.org/gnu/tar/tar-1.19.tar.bz2|bzip2 -d|tar xvf -
tar-1.19/
tar-1.19/build-aux/
tar-1.19/build-aux/compile
tar-1.19/build-aux/config.guess
[extra output removed]

        Thanks!
        Mike Trausch

-- 
Michael B. Trausch                                   [EMAIL PROTECTED]
home: 404-592-5746, 1                                 www.trausch.us
cell: 678-522-7934                       im: [EMAIL PROTECTED], jabber
Ubuntu Unofficial Backports Project:    http://backports.trausch.us/

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to