cvs commit: src/usr.bin/gzip gzip.c

John Baldwin jhb at freebsd.org
Mon Mar 10 17:50:32 UTC 2008


On Monday 10 March 2008 01:16:29 pm Robert Watson wrote:
> 
> On Mon, 10 Mar 2008, John Baldwin wrote:
> 
> >>     usr.bin/gzip         gzip.c
> >>   Log:
> >>   Teach gunzip that .tbz and .tbz2 uncompress to .tar, in a manner 
similar
> > to
> >>   its existing understanding that .tgz uncompresses to .tar.
> >>
> >>   MFC after:      3 days
> >>   PR:             121519
> >>   Submitted by:   Ighighi <ighighi at gmail.com>
> >>
> >>   Revision  Changes    Path
> >>   1.6       +2 -0      src/usr.bin/gzip/gzip.c
> >
> > 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.

-- 
John Baldwin


More information about the cvs-src mailing list