#630111 /bin/zdiff: zdiff doesn't gunzip without .gz extension

Package:
gzip
Source:
gzip
Description:
GNU compression utilities
Submitter:
Jayen Ashar
Date:
2020-12-12 15:45:04 UTC
Severity:
wishlist
#630111#5
Date:
2011-06-11 04:01:40 UTC
From:
To:
I tried running zdiff on two gzipped xml files, like:
zdiff Accounts.xac Accounts.xac.gnucash.20110520085906.gnucash

It reported that the two binary files differed, so I ran zdiff -a, which spewed binary data.

I then symlinked xxx.gz to xxx and ran:
zdiff Accounts.xac.gz Accounts.xac.gnucash.20110520085906.gnucash.gz

That worked fine.

Please make zdiff work with gzipped files that don't have the .gz extension.

Thanks,
Jayen

#630111#12
Date:
2012-02-05 13:06:44 UTC
From:
To:
tags 343575 patch
tags 630111 patch
stop
-----

Hello,

Here is a small patch for this bug.

Regards,

#630111#17
Date:
2012-02-05 13:07:44 UTC
From:
To:
tags 343575 patch
tags 630111 patch
stop
-----

Hello,

Here is a small patch for this bug.

Regards,

#630111#24
Date:
2012-04-13 05:19:43 UTC
From:
To:
Thanks for the patch you provided in early Feb.  Unfortunately, applying
this patch causes 'make check' to fail like so:

  make[4]: Leaving directory `/tmp/buildd/gzip-1.4/build'
    GEN    gzip.doc.gz
  { test '..' != . || ./zdiff --__bindir . -c gzip.doc.gz; }
  ./zdiff --__bindir . -c ../gzip.doc ../gzip.doc
  ./zdiff --__bindir . ../gzip.doc gzip.doc.gz
  ./zdiff --__bindir . -c - ../gzip.doc <gzip.doc.gz
  *** -	Fri Apr 13 05:13:31 2012
  --- ../gzip.doc	Fri Apr 13 05:13:02 2012
  ***************
  *** 0 ****
  --- 1,372 ----
  + GZIP(1)							       GZIP(1)
  +
  + NAME
  +        gzip, gunzip, zcat - compress or expand files

And so on.

Want to try again?

Bdale

#630111#29
Date:
2020-12-12 15:42:39 UTC
From:
To:
-----

Need to rework the patch.