Hi Jean-loup.

zdiff was not working on my system: When comparing 2 uncompressed
files, it worked. When comparing 1 compressed with an uncompressed
file, it worked. But when comparing 2 compressed files I got no
output.

It seems the missing part was >&3.

Here is a patch.

/Ole

--- /home/tange/bin/zdiff       2007-07-31 10:25:13.000000000 +0200
+++ /bin/zdiff  2007-06-22 02:17:05.000000000 +0200
@@ -104,7 +104,7 @@
                          exec 4>&1
                          (gzip -cdfq -- "$1" 4>&-; echo $? >&4) 3>&- |
                            ( (gzip -cdfq -- "$2" 4>&-; echo $? >&4)
3>&- 5<&- </dev/null |
-                              eval "$cmp" /dev/fd/5 - >&3) 5<&0
+                              eval "$cmp" /dev/fd/5 -) 5<&0
                        )
                        case $gzip_status in
                          *[1-9]*) gzip_status=1;;


Reply via email to