Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Mar 2008 13:48:47 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        Robert Watson <rwatson@freebsd.org>
Cc:        cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org
Subject:   Re: cvs commit: src/usr.bin/gzip gzip.c
Message-ID:  <200803101348.47724.jhb@freebsd.org>
In-Reply-To: <20080310171551.Y70549@fledge.watson.org>
References:  <200803091349.m29Dn91v003746@repoman.freebsd.org> <200803101244.52073.jhb@freebsd.org> <20080310171551.Y70549@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803101348.47724.jhb>