cvs commit: src/usr.bin/gzip gzip.c
Robert Watson
rwatson at FreeBSD.org
Mon Mar 10 18:11:10 UTC 2008
On Mon, 10 Mar 2008, John Baldwin wrote:
>>> So are we creating packages for ports that are compressed with gzip but
>>> using bzip names? Otherwise, gunzip should probably fail on a '.tbz'
>>> because it isn't a gzipped file (unless gunzip auto-invokes bunzip2 or
>>> some such feature that I'm not aware of).
>>
>> gunzip is smarter than you think. :-)
>
> Hmm. I guess I would consider it a user error to use gunzip on a bzip'd
> file (round peg, square hole sort of deal). However, that has more to do
> with the functionality (which I find surprising and perhaps a bit
> non-UNIX-ish) rather than this specific patch.
Yeah -- this change was really just about teaching gunzip that unzipping a
.tbz or .tbz2 file is like unzipping a .tgz or .tgz2 file as was the case for
.tgz: rename it to .tar when it's unzipped. The functionality to unzip bz2
files was already present, you just end up with a different file extension
when done. I can see arguments for and against that, but nothing to do with
the patch I committed. :-)
Robert N M Watson
Computer Laboratory
University of Cambridge
More information about the cvs-src
mailing list