On Friday 09 January 2004 11:27, Robert Klein wrote: > On Freitag, 9. Januar 2004 10:33, Josef El-Rayes wrote: > > Lukas Ertl <[EMAIL PROTECTED]> 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 _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"