Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Jan 2004 14:07:44 +0100
From:      Markus Brueffer <brueffer@phoenix-systems.de>
To:        RoKlein@roklein.de, j.el-rayes@daemon.li, Lukas Ertl <l.ertl@univie.ac.at>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: freebsd-hackers Digest, Vol 42, Issue 6
Message-ID:  <200401091407.48104.brueffer@phoenix-systems.de>
In-Reply-To: <200401091127.18780.RoKlein@roklein.de>
References:  <20040108181346.84AE116A4E0@hub.freebsd.org> <20040109093311.GC311@jenny.daemon.li> <200401091127.18780.RoKlein@roklein.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 09 January 2004 11:27, Robert Klein wrote:
> On Freitag, 9. Januar 2004 10:33, Josef El-Rayes wrote:
> > Lukas Ertl <l.ertl@univie.ac.at> wrote:
> > > On Fri, 9 Jan 2004, Josef El-Rayes wrote:
> > > > tar xvfj file.tar.bz2
> > >
> > > tar xvjf ....
> >
> > i do not think that the order of the parameters
> > have any influence on the result.
>
> No, but the filename has to be right after the f.  The following
> commands work, and both have the same result:
>
> tar -jxvf file.tar.bz2
> tar -jxf file.tar.bz2 -v
>
> but the following does not work as you expect:
>
> tar -jxfv file.tar.bz2
>
> In this command tar(1) tries to extract the file "v".
>
> Example error message:
> $ tar -jtfv xfce-4.0.1-src.tar.bz2
> tar (child): v: Cannot open: No such file or directory
> tar (child): Error is not recoverable: exiting now
> tar: Child returned status 2
> tar: xfce-4.0.1-src.tar.bz2: Not found in archive
> tar: Error exit delayed from previous errors
> $

Remove the "-" from the front of the options-list and it will work in your 
last example. So Josefs statement was correct.

What I'm asking me, is why the "-" makes a difference, though I haven't looked 
at the sources, yet. The manpage states, that the "-" is only optional, so 
"tar -jxfv" and "tar jxvf" should be equivalent, but obviously they are not.

Markus



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401091407.48104.brueffer>