[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] Issue with tar. Bug file.
From: |
Joerg Schilling |
Subject: |
Re: [Bug-tar] Issue with tar. Bug file. |
Date: |
Mon, 23 Sep 2013 11:16:45 +0200 |
User-agent: |
nail 11.22 3/20/05 |
Pulkit Bhuwalka <address@hidden> wrote:
> Hi,
>
> This is to report an issue that I have run into while using tar.
>
> *Issue* - tar destroys file when arguments are passed in wrong order
> leading to loss of data.
>
> *Correct tar order* - tar -cvzf "archive_file_name" "file_to_be_archived"
>
> *Order actually passed* - tar - cvzf "file_to_be_archived"
> "archive_file_name"
>
> tar ignores the fact that the "file_to_be_archived" exists and simply
> overwrites it, and then crashes out complaining that "archive_file_name"
> doesn't exist.
....A problem that is known since before GNU tar exists...
This is typical "tar" behavior and this is why "star" did never allow this in
case it was called as "star". When keeping compatibility with the SUSv2
standard,
I see no easy way to work around the problem.
Jörg
--
EMail:address@hidden (home) Jörg Schilling D-13353 Berlin
address@hidden (uni)
address@hidden (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily