summaryrefslogtreecommitdiff
path: root/zdiff.in
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2007-02-08 22:54:59 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2007-02-08 22:54:59 +0000
commit80ea6acbb957497825354cebe3452ce0c58e314e (patch)
tree081b92710e7352a0017e7af279f36fbed2b76f99 /zdiff.in
parentb3b206059eeacd5f06a6ac8497d9f93efc99cdf2 (diff)
downloadgzip-80ea6acbb957497825354cebe3452ce0c58e314e.tar.gz
* zdiff.in: Don't use '((' in a shell script, as it's not portable
to some ksh implementations, e.g., Solaris 10 ksh M-11/16/88i. Problem reported by Nelson H. F. Beebe in <http://lists.gnu.org/archive/html/bug-gzip/2007-02/msg00005.html>.
Diffstat (limited to 'zdiff.in')
-rw-r--r--zdiff.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/zdiff.in b/zdiff.in
index 1eeaa7e..fda3259 100644
--- a/zdiff.in
+++ b/zdiff.in
@@ -103,7 +103,7 @@ elif test $# -eq 2; then
gzip_status=$(
exec 4>&1
(gzip -cdfq -- "$1" 4>&-; echo $? >&4) 3>&- |
- ((gzip -cdfq -- "$2" 4>&-; echo $? >&4) 3>&- 5<&- </dev/null |
+ ( (gzip -cdfq -- "$2" 4>&-; echo $? >&4) 3>&- 5<&- </dev/null |
eval "$cmp" /dev/fd/5 -) 5<&0
)
case $gzip_status in