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

UNTAR gives misleading messages

Discussion in 'Support' started by vefatica, Sep 16, 2012.

  1. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,785
    Likes Received:
    29
    I UNTAR'd a file. According to UNTAR's messages, all files were extracted to the current directory (see below). They were, in fact, extracted into an appropriate directory tree.

    Code:
    v:\tcsh> untar tcsh-6.18.01.tar
    => V:\tcsh\tcsh-6.18.01
    => V:\tcsh\BUGS
    SNIP
    => V:\tcsh\stubdll.c
    => V:\tcsh\test.c
     
    v:\tcsh> d
    2012-09-16  00:04        <DIR>    tcsh-6.18.01
    2012-02-13  16:34      3,962,880  tcsh-6.18.01.tar
    2012-02-13  00:00        926,872  tcsh-6.18.01.tar.gz
     
    v:\tcsh> tree tcsh-6.18.01\
     
    V:\tcsh\tcsh-6.18.01\
    ├──config
    ├──cygwin
    ├──nls
    │  ├──C
    │  ├──et
    │  ├──finnish
    │  ├──french
    │  ├──german
    │  ├──greek
    │  ├──italian
    │  ├──ja
    │  ├──pl
    │  ├──russian
    │  ├──spanish
    │  └──ukrainian
    ├──tests
    └──win32
      └──msg
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,730
    Likes Received:
    80
    The correct syntax for what you're trying to do is:

    untar /d tcsh-6.18.01.tar

    There is a bug in the zip dll that is causing the tar contents to *not* be written to the current directory when you don't specify /D (i.e., the display output is right, but the contents are erroneously extracted to the subdirectory). I've added a workaround for the next build.
     
  3. JohnQSmith

    Joined:
    Jan 19, 2011
    Messages:
    560
    Likes Received:
    8
    I think what vefatica was reporting was that the files were properly extracted to the correct subdirectories, but the extraction messages indicated everything was extracted to the main folder (the problem being with the messages, not the extraction location). Either way, it looks like you've got a handle on it.
     
  4. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,730
    Likes Received:
    80
    The files were *not* extracted properly -- since he didn't specify /D, everything should have gone into the current directory. The messages were correct; the results were not.
     

Share This Page