shouldn't tar quit at end of archive?

Rob Landley rob at landley.net
Sat Apr 1 04:51:50 UTC 2006


On Friday 31 March 2006 5:16 pm, Rich Felker wrote:
> On Sat, Apr 01, 2006 at 10:03:33AM +1200, Glenn L. McGrath wrote:
> > On Fri, 31 Mar 2006 16:12:20 -0500
> >
> > Rob Landley <rob at landley.net> wrote:
> > > When you go "gunzip thing.gz | tar x" you don't want gunzip() to get an
> > > EPIPE writing to stdout due to the trailing zeroes.  Perhaps if tar
> > > expects up to 1024k of zeroes, it should read up to 1024k of extra
> > > zeroes and then stop?
> >
> > It can be any multiple of 512, its set by the -b option when the tar
> > file is created.
>
> Why do we care if gunzip gets EPIPE?

I thought it might print an error message, but testing both zcat blah.gz and 
cat blah.gz | gunzip and piping the output to an intentionally short dd, 
apparently it doesn't.

Rob
-- 
Never bet against the cheap plastic solution.


More information about the busybox mailing list