bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: -T option


From: Paul Eggert
Subject: Re: -T option
Date: Sat, 28 Oct 2000 06:09:55 -0700 (PDT)

   From: Ben Kohlen <address@hidden>
   Date: Fri, 27 Oct 2000 16:55:32 -0700

   $ tar -xvf sometar.tar -T - <<end
   > somedir
   > somedir/somefile
   > end
   somedir/
   somedir/somefile
   tar: somedir/somefile: Not found in archive

   I will fix this myself if I can find the time, but perhaps it could be
   added to the TODO list shipped with the tar source.

I looked into fixing it, and unfortunately all the fixes that I could
think of would slow down tar in the normal case.  By the way, the
problem is independent of the -T option; it even occurs if you say
"tar -xvf sometar.tar somedir somedir/somefile".

However, it does seem to me that if you specify the --no-recursion
option, tar should do what you want: it should extract only the
directories and files that you specify, and should not extract
unmentioned subfiles of directories.  That way, all the files will
match the way that I think you want them to.

Currently tar ignores the --no-recursion option when extracting; this
doesn't seem to be right to me, and I'll fix this in the next test
release.



reply via email to

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