"Sergey Poznyakoff" <[EMAIL PROTECTED]> wrote:

> To begin with, let me remind that we are discussing GNU tar here. 

Many people believe that GNU tar is tar and for this reason, GNU tar
should be as close to the behavior of tar as possible. In fact, PD-tar/SUG-tar
from John Gilmore (what GNU tar was based on) was very compatible.

> Joerg Schilling <[EMAIL PROTECTED]> ha escrit:
>
> > -   POSIX does not forbid long options, it only recommends to use short
> >     options.
>
> Right. In GNU, long options begin with two dashes, not one. Therefore -7z
> is not a long option.

POSIX strongly recommends single char options and POSIX strongly recommends
that options start with a single '-'.

A long option called "-abc" ignores one recommendation, a long option called 
"--abc" ignores two recommendations.


  
> > The only conforming way to implement tar is _not_ to implement options
> > in tar. "tar cf7 /dev/rmt/0 ." is conforming, "tar -cf7 /dev/rmt/0 ."
> > is not.
>
> Are you suggesting to remove short option support from GNU tar?

No, a decent option parser will not recognize -7z as -7 -z in case that
a long option named -7z is defined.

If GNU tar preferes to use --long-option, then should know that this is less 
close to POISX than -long-option. In the Schily universe, programs _also_ 
accept 
--long-option for user convenience....

Jörg

-- 
 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
       [EMAIL PROTECTED]                (uni)  
       [EMAIL PROTECTED]     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily


Reply via email to