* zdiff.in: Test /dev//fd/3, not /dev/fd/3, to work around a problem
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 4 Jan 2007 05:24:04 +0000 (05:24 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 4 Jan 2007 05:24:04 +0000 (05:24 +0000)
with Tru64 4.0F ksh M-11/16/88f reported by Thomas Koutcher in
<http://lists.gnu.org/archive/html/bug-gzip/2007-01/msg00000.html>.

ChangeLog
zdiff.in

index c0bcc6e975ce50ea3239d44dab851f24a2cda454..b7699b0518e4d2c4a1fe982837ab319caa257118 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-01-03  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * zdiff.in: Test /dev//fd/3, not /dev/fd/3, to work around a problem
+       with Tru64 4.0F ksh M-11/16/88f reported by Thomas Koutcher in
+       <http://lists.gnu.org/archive/html/bug-gzip/2007-01/msg00000.html>.
+
 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
 
        * NEWS: Version 1.3.10 released.
index 74c92fb7a4f3afd0f839856470032d21ab22ca5b..72caacc2fe62eca8c9c6dd4c5184585b8808c190 100644 (file)
--- a/zdiff.in
+++ b/zdiff.in
@@ -65,7 +65,9 @@ elif test $# -eq 2; then
                *[-.]gz* | *[-.][zZ] | *.t[ga]z | -)
                    if test "$1$2" = --; then
                        gzip -cdfq - | eval "$cmp" - -
-                   elif test -r /dev/fd/3 3</dev/null; then
+                   # The extra slash in /dev//fd works around a problem with
+                   # Tru64 4.0F ksh M-11/16/88f.
+                   elif test -r /dev//fd/3 3</dev/null; then
                        gzip -cdfq -- "$1" |
                          (gzip -cdfq -- "$2" |
                           eval "$cmp" /dev/fd/3 -) 3<&0