gzip 1.3.5
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 27 Sep 2002 06:17:09 +0000 (06:17 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 27 Sep 2002 06:17:09 +0000 (06:17 +0000)
znew.in

diff --git a/znew.in b/znew.in
index 5b61471e03017098be4ece36923dde6579667406..fdbc78407e275382872683b530428e3dab611a71 100644 (file)
--- a/znew.in
+++ b/znew.in
@@ -15,6 +15,7 @@ block=1024
 
 warn="(does not preserve modes and timestamp)"
 tmp=/tmp/zfoo.$$
+set -C
 echo hi > $tmp.1
 echo hi > $tmp.2
 if test -z "`(${CPMOD-cpmod} $tmp.1 $tmp.2) 2>&1`"; then
@@ -119,8 +120,8 @@ for i do
     fi
   fi
   test $keep -eq 1 && new=`wc -c < "$n$ext"`
-  if test $keep -eq 1 -a `expr \( $old + $block - 1 \) / $block` -lt \
-                         `expr \( $new + $block - 1 \) / $block`; then
+  if test $keep -eq 1 && test `expr \( $old + $block - 1 \) / $block` -lt \
+                             `expr \( $new + $block - 1 \) / $block`; then
     if test $pipe -eq 1; then
       rm -f "$n$ext"
     elif test $check -eq 1; then