Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 May 1997 14:03:57 +1000
From:      David Dawes <dawes@rf900.physics.usyd.edu.au>
To:        "Pedro F. Giffuni" <pgiffuni@fps.biblos.unal.edu.co>
Cc:        hackers@freebsd.org
Subject:   Re: GNU is not tar
Message-ID:  <19970513140357.63713@rf900.physics.usyd.edu.au>
In-Reply-To: <3377F32D.10DB@fps.biblos.unal.edu.co>; from Pedro F. Giffuni on Mon, May 12, 1997 at 09:50:53PM -0700
References:  <Pine.NEB.3.94.970512180204.6097B-100000@misery.sdf.com> <3377F32D.10DB@fps.biblos.unal.edu.co>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, May 12, 1997 at 09:50:53PM -0700, Pedro F. Giffuni wrote:
>Tom Samplonius wrote:
>> 
>>   BSD tar was discarded with 4.4, and "replaced" with pax.  BSDI 2.1
>> hardlinks tar to pax.
>> 
>Thanks for the hint.
>The GNU tar bug must be something very stupid, one notation is accepted
>and the other isn't (something like this):
>
>tar -cbf filename.tar 10 *				Doesn't work !

The following work (with gnu tar on FreeBSD 2.2.x):

tar cbf 10 filename.tar *

and:

tar cfb filename.tar 10 *

tar -c -f filename.tar -b 10 *

also works.

According to the man page, your example should work if you reversed the
"filename.tar" and "10" arguments, but it doesn't.  The man page is however
a FreeBSD addition.  According to the documentation that comes with gnu
tar:

]]Short options letters may be lumped together, but contrary to old
]]options, they do not necessarily have to.  When short options are
]]nevertheless coalesced, use a single dash for them all.  Only the last
]]one in such a set is allowed to have an argument.

So, it is behaving as documented, and the FreeBSD man page isn't accurate:

     The first argument word of the tar command line is usually a command word
     of bundled function and modifier letters, optionally preceded by a dash;
     it must contain exactly one function letter from the set A, c, d, r, t,
     u, x, for append, create, difference, replace, table of contents, update,
     and extract (further described below).  The command word can also contain
     other function modifiers described below, some of which will take argu-
     ments from the command line in the order they are specified in the com-
     mand word (review the EXAMPLES section).  Functions and function modi-


David



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