From: Paul Eggert Date: Fri, 27 Sep 2002 06:17:09 +0000 (+0000) Subject: gzip 1.3.5 X-Git-Tag: v1.3.12~80 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=04ed6b0d3e8842c9ba43513ca5108025911b5536;p=debian%2Fgzip gzip 1.3.5 --- diff --git a/znew.in b/znew.in index 5b61471..fdbc784 100644 --- 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