On Dec 14, 2011 1:37 AM, "Dave McGuire" <mcguire at neurotica.com> wrote:
On 12/13/2011 07:51 PM, Liam Proven wrote:
What I expect, want and demand:
It unpacks to the name(s) of the file(s) [and folders] in the archive
and leaves the original archive the fsck alone.
In my early Linux days, I was /very/ annoyed several times when Gunzip
cheerfully *removed the archive I told it to unpack*. This is
*absolutely* unacceptable to my mind.
Why? Because it differs from another tool that you may have been
accustomed to?
If that's why, be aware that gzip's user interface is
patterned after a tool that far predates pkzip/pkarc/arc/etc, and that
behavior has been the accepted one that has been considered logical and
good since the 1970s.
Also be advised that you didn't tell it to unpack an archive (something
gzip
doesn't do), you told it to decompress a compressed file. Tar (say)
doesn't remove a tar file after extracting its contents, because...well,
cheerfully removing the archive you told it to unpack would be absolutely
unacceptable.
Decompressing a compressed file is a whole different animal; you can get
things
right back where they were (if you need to) with a single command.
The only possible difference is the original user's compression setting,
and I respectfully submit that the loss of that information isn't
frequently a big deal.
File compression is something that you "do" to a single file. Should
"undoing" it result in two copies of the file, one with it
"done" and the
other with it "undone"? THAT seems ridiculous to me.
To each their own. Decompression if a file is, to me, a process of reading
the compressed file & wiring an uncompressed one. That the UNIX tradition
appears to be "oh yeah, do that & feel free to tamper with the source as
well" does not wash.
I am no respecter or admirer of tradition. Tradition is often wrong.
I am of course prepared to be educated & told why this is wrong, but I will
only be persuaded if the reasons are really remarkably good ives.