The following message is a courtesy copy of an article that has been posted to gmane.comp.gnu.utils.bugs as well.
Bob Proulx <[email protected]> writes: > Jari Aalto wrote: > >> Please add new option -z, --compress to support compressed files. > May I suggest that -z would be generic "do the right thing". Sompressors could be built in during compile according to libs available. diff -z orig/file.c.lzop file.c.lzop # same .EXT diff -z orig/file.c.lzop file.c.gz # Different .EXT diff -z orig/file.c.lzop file.c # only one compressed .EXT > It would be better if this were a generically usable interface to a > variety of compressors such as gzip, bzip2, lzop, lzma, etc. That would be welcomed. Something like --use-compress-program=... It should allow list (separated by colon ":" marker) of file extensions and their respective compressor commands. Here .EXT is is file extension. CMD would be any external program with options accepting stdin and writing to stdout. ".EXT COMMAND:[.EXT COMMAND]..." >> 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. Unfortunately /bin/sh does not always allow <(CMD). The -z option would be quite convenient. Jari -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

