[vorbis-dev] test suite

David A. Gatwood dgatwood at gatwood.net
Sat Feb 10 18:19:44 PST 2001



On Sat, 10 Feb 2001, jaromil wrote:

> On Sat, Feb 10, 2001 at 10:45:55PM +0100, Lourens Veen wrote:
> > 
> > Well, as you may have noticed, to extract a .tar.gz you use "tar xvzf
> > filename.tar.gz", while you extract a .tar.bz2 with "tar xvIf
> > filename.tar.bz2". That's one character extra, plus an extra shift in
> > the tar options. Since most people are lazy, they use gzip rather than
> > bzip2.
> 
> that's wrong
> for bzip2 is
> 
> tar xvfy filename.tar.bz2

Cant' be fy.  That would cause it to look in the tar file called "y" for a
file called filename.tar.bz2.  The file name is always whatever comes
immediately after the f (ignoring whitespace), so you could do tar
-xzfhello.tar.gz and it would work, for example.

I think you mean tar -xvyf.  And I'm not sure if it's y or l.  Neither one
works even as late as RedHat 6.2 IOW, this is a _really_ recent addition
to tar, and you shouldn't count on it being there.  The only way to
extract bzip2 files with tar that's even _remotely_ general is to do
"bunzip2 -c filename | tar -xf -".  With gzip, by contrast, it has been
around long enough that you can usually get away with tar -xzf, as long as
you're not targeting Slowaris.  :-p

Later,
David

---------------------------------------------------------------------
                    Check out my weekly web comic:
                     http://www.techmagazine.org

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list