Nikos Chantziaras <rea...@arcor.de> wrote:

> Nikos Chantziaras wrote:
> > 1) Better use -cjvpf  ("f") takes an argument (the filename of that tar 
> > to be crated) so it must be at the end.
>
> That's why I usually use "tar -cjvp -f blabla.tar.bz2".  I always 
> seperate options that take an argument from the rest.  But -cjvpf works 
> too as long as "f" is at the end.  This means that if you combine many 
> options after a single "-", only one one of them is allowed to take an 
> argument; the last one.

You are describing the oddities of the bugs in the command line parser from 
gnu tar. Some of the problems are bugs built into the GNU getopt() function,
others are a result from the preprocessing in gnutar.

tar, ar and ps are the UNIX commands that do not follow the CLI guidelines from 
the late 1970s, see:

http://www.opengroup.org/onlinepubs/007908799/xcu/tar.html

and do not use options that are prepended by '-'.

The origunal UNIX tar just ignores the '-' and parses the options as defined in 
1978.

Star internally correctly converts the first parameter from the historic style 
to something that can be parsed by a modern command line parser such as 
getargs(). GNU tar does not correctly convert the parameters...

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       j...@cs.tu-berlin.de                (uni)  
       joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily

Reply via email to