[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: diff: [ENHANCEMENT] add option to support compressed files: -z, --co
From: |
Bob Proulx |
Subject: |
Re: diff: [ENHANCEMENT] add option to support compressed files: -z, --compress |
Date: |
Sat, 8 Aug 2009 10:59:02 -0600 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Jari Aalto wrote:
> Please add new option -z, --compress to support compressed files.
It would be better if this were a generically usable interface to a
variety of compressors such as gzip, bzip2, lz, etc.
> cd /usr/src/versin-control/program.cvs
> diff -u -z program.1 /usr/share/man/man1/program.1.gz
Note that modern shells including GNU bash allow this through the
command line shell.
diff -u program.1 <(zcat /usr/share/man/man1/program.1.gz)
Is that good enough? If it is in the shell and therefore supports all
compressors and all command line utilities uniformly then I do not
think that it should be added to the code of every command line
program.
Bob