1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

TAR with multiple files and /G

Discussion in 'Support' started by Stephen Howe, Oct 12, 2011.

  1. Stephen Howe

    Joined:
    Jun 7, 2008
    Messages:
    127
    Likes Received:
    0
    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
     
  2. Peter Bratton

    Joined:
    Jul 1, 2008
    Messages:
    81
    Likes Received:
    0
    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
     
  3. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,726
    Likes Received:
    80
    Bug in the compression lib; I've added a workaround for build 27.
     

Share This Page