TAR with multiple files and /G

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Jun 7, 2008
121
0
#1
Hi

On checking TAR documentation, I thought that

TAR /G arch B20100809.PRG B20100809A.PRG

will

(i) create arch.TAR from the 2 PRG files
(ii) create arch.TAR.gz from the ARCH.tar, running GZIP on the new TAR file

If I try this out, I see

[C:\First\Sit2\f\g]tar /G arch B20100809.PRG B20100809A.PRG
<= C:\First\Sit2\f\g\B20100809.PRG
<= C:\First\Sit2\f\g\B20100809A.PRG
TCC: Error in archive C:\First\Sit2\f\g\arch.tar.gz :
.tar.gz files cannot be appended to. "C:\First\Sit2\f\g\B20100809A.PRG"

Did I do anything wrong or misread the documentation?

Thanks

Stephen Howe
 
Jul 1, 2008
81
0
70
Montreal
#2
Hi

On checking TAR documentation, I thought that

TAR /G arch B20100809.PRG B20100809A.PRG

will

(i) create arch.TAR from the 2 PRG files
(ii) create arch.TAR.gz from the ARCH.tar, running GZIP on the new TAR file

If I try this out, I see

[C:\First\Sit2\f\g]tar /G arch B20100809.PRG B20100809A.PRG
<= C:\First\Sit2\f\g\B20100809.PRG
<= C:\First\Sit2\f\g\B20100809A.PRG
TCC: Error in archive C:\First\Sit2\f\g\arch.tar.gz :
.tar.gz files cannot be appended to. "C:\First\Sit2\f\g\B20100809A.PRG"

Did I do anything wrong or misread the documentation?

Thanks

Stephen Howe
I see the same thing. If arch.tar.gz doesn't exist:
Code:
C:\btm del arch.tar.gz
Deleting C:\btm\arch.tar.gz
     1 file deleted              8,192 bytes freed

0 C:\btm TAR /G "arch" RegTweaks.btm check.btm
<= C:\btm\RegTweaks.btm
<= C:\btm\check.btm
TCC: Error in archive C:\btm\arch.tar.gz :
  .tar.gz files cannot be appended to. "C:\btm\check.btm"
if it exists, the same command produces different error messages:
Code:
C:\btm TAR /G arch RegTweaks.btm check.btm
<= C:\btm\RegTweaks.btm
TCC: Error in archive C:\btm\arch.tar.gz :
  .tar.gz files cannot be appended to. "C:\btm\RegTweaks.btm"
<= C:\btm\check.btm
TCC: Error in archive C:\btm\arch.tar.gz :
  .tar.gz files cannot be appended to. "C:\btm\check.btm"
The command creates arch.tar.gz, which contains only the first file in the list, in this case RegTweaks.btm
--
Peter