bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] Directories are listed like files, no trailing slash shown


From: Paul Eggert
Subject: Re: [Bug-tar] Directories are listed like files, no trailing slash shown
Date: Fri, 02 Nov 2012 15:09:53 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1

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

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