gnu tar manual confusion

View: New views
2 Messages — Rating Filter:   Alert me  

gnu tar manual confusion

by Igor-71 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello, maintainers

When reading gnu tar manual I was confused by following paragraph:

"6.10.1 Changing the Working Directory
...
Contrast this with the command,
$ tar -c -f jams.tar grape prune -C food red/cherry
which records the third file in the archive under the name ‘red/cherry’
so that, if the archive is extracted using ‘tar --extract’, the third
file will be written in a subdirectory named ‘orange-colored’."

Confusing thing is directory mentioned twice as "red" and
"orange-colored". As I understand file cherry stored under path
red/cherry will be extracted to directory red but not orange-colored,
isn't it? Also it will be more consistent to mention that file cherry is
found under food/red/cherry path in this case as opposed to previous
example's food/cherry, however may be it is clear enough for others and
I'm too pedantic?:).

Thanks for your work,
Igor.




Re: gnu tar manual confusion

by Sergey Poznyakoff-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Igor,

> Confusing thing is directory mentioned twice as "red" and
> "orange-colored". As I understand file cherry stored under path
> red/cherry will be extracted to directory red but not orange-colored,
> isn't it?

Yes, you are right. The manual is definitely wrong. I'll fix it.

> Also it will be more consistent to mention that file cherry is
> found under food/red/cherry path in this case as opposed to previous
> example's food/cherry,

Sure, the manual should also list the orignal directory contents.

Regards,
Sergey