bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] Re: Fwd: bug in GnuTar


From: Nathan Stratton Treadway
Subject: [Bug-tar] Re: Fwd: bug in GnuTar
Date: Thu, 22 Nov 2007 22:29:46 -0500
User-agent: Mutt/1.5.13 (2006-08-11)

On Thu, Nov 22, 2007 at 03:55:40PM +0200, Sergey Poznyakoff wrote:
> Vitaly V. Ch <address@hidden> ha escrit:
> 
> > On some machines run under slackware 10.2 next test always fail:
> > 
> >  for ((i=0;i<1000;i++)); do echo $i >$i; tar cz $i >>file.tgz; done;
> > gzip -t -v file.tgz
> 
> It should have failed. You cannot glue together two compressed files and
> expect the result to be a valid compressed file.

I haven't ever used it myself, but my gzip man page says:

    ADVANCED USAGE
       Multiple compressed files can be concatenated.  In  this case,  gunzip
       will extract all members at once. For example:

             gzip -c file1  > foo.gz
             gzip -c file2 >> foo.gz

       Then

             gunzip -c foo

       is equivalent to

             cat file1 file2


(This is the man page included in the Debian gzip package, version
1.3.5-10sarge2.)


                                        Nathan

----------------------------------------------------------------------------
Nathan Stratton Treadway  -  address@hidden  -  Mid-Atlantic region
Ray Ontko & Co.  -  Software consulting services  -   http://www.ontko.com/
 GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt   ID: 1023D/ECFB6239
 Key fingerprint = 6AD8 485E 20B9 5C71 231C  0C32 15F3 ADCD ECFB 6239

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]