On 11/02/2012 01:24 PM, Live user wrote:

> Example: get the contents of a tar archive to a text file:
> 
> tar --list -f myarchive.tar
> dir1
> dir1/data.dat
> 
> Where it should be
> 
> dir1/
> dir1/data.dat

I don't observe this problem with GNU tar 1.26:

$ ls -alR d
d:
total 44
drwxr-xr-x.  3 eggert eggert  4096 Nov  2 15:05 .
drwx------. 76 eggert eggert 36864 Nov  2 15:05 ..
drwxr-xr-x.  2 eggert eggert  4096 Nov  2 15:05 e
-rw-r--r--.  1 eggert eggert     0 Nov  2 15:05 f

d/e:
total 8
drwxr-xr-x. 2 eggert eggert 4096 Nov  2 15:05 .
drwxr-xr-x. 3 eggert eggert 4096 Nov  2 15:05 ..
-rw-r--r--. 1 eggert eggert    0 Nov  2 15:05 f
$ tar cf tar d
$ tar tf tar
d/
d/f
d/e/
d/e/f


Reply via email to