bug-gzip
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gzip 1.3.10 zdiff on Tru64 4.0F


From: Paul Eggert
Subject: Re: gzip 1.3.10 zdiff on Tru64 4.0F
Date: Wed, 03 Jan 2007 21:27:16 -0800
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Thomas Koutcher <address@hidden> writes:

> On Tru64 4.0F zdiff is using ksh Version M-11/16/88f. ksh has some support for
> the syntax /dev/fd/n and thus the command "test -r /dev/fd/3 3</dev/null"
> returns 0 but this syntax does not work for external commands

Thanks for reporting that.  Can you please try the following patch
instead?  It should be one fewer system call.  I installed it, as it
shouldn't hurt, but if possible I'd like you to verify that it
actually works on your host.  Thanks.

2007-01-03  Paul Eggert  <address@hidden>

        * 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>.

--- zdiff.in    24 Dec 2006 04:14:57 -0000      1.6
+++ zdiff.in    4 Jan 2007 05:23:48 -0000
@@ -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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]