Helmut Waitzmann <[EMAIL PROTECTED]> wrote:
> $ tar -tvf
>
> Look at this example. Execute it in an empty directory:
>
> $ ln -s -- link 'file ->' && ln -s -- '-> link' file && \
> tar -c -f - . | LC_ALL=C tar -tvf -
> drwx------ helmut/helmut 0 2006-01-12 06:30:47 ./
> lrwxrwxrwx helmut/helmut 0 2006-01-12 06:30:31 ./file -> -> link
> lrwxrwxrwx helmut/helmut 0 2006-01-12 06:30:47 ./file -> -> link
>
> As you can see, one cannot distinguish the two symlinks 'file ->' and
> 'file'. Sorry. tar -tvf is broken by design.
>
> So you can't help looking into the tape archive yourself. Tar -tvf does
> not do its job.
tar has not been designed for this usage but as GNU tar is a tar clone it could
add the apropriate extensions via new options.
star gives you two way to deal with your problem:
1)
star -t -tpath < archive.tar
2)
star -t -find -print -false < archive.tar
or even:
star -t -find -ls -false < archive.tar
Jörg
--
EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
[EMAIL PROTECTED] (uni)
[EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
Bug-tar mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-tar