From: Paul Eggert Date: Fri, 8 Dec 2006 18:45:37 +0000 (+0000) Subject: * gzexe.in: Work around FreeBSD shell trap bug. X-Git-Tag: v1.3.12~38 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=7d7cdcdc78afeb90614739cc35390623eb6b4b8e;p=debian%2Fgzip * gzexe.in: Work around FreeBSD shell trap bug. * gzip.1: Fix typo. * doc/gzip.texi: Likewise. --- diff --git a/ChangeLog b/ChangeLog index d7850e7..2bfb01c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-12-08 Ralf Wildenhues (tiny change) + + * gzexe.in: Work around FreeBSD shell trap bug. + * gzip.1: Fix typo. + * doc/gzip.texi: Likewise. + 2006-12-08 Paul Eggert * .cvsignore: Add .deps, gzexe, gzip, zdiff, zforce, zgrep, diff --git a/doc/gzip.texi b/doc/gzip.texi index fd782aa..9be2aa3 100644 --- a/doc/gzip.texi +++ b/doc/gzip.texi @@ -291,7 +291,7 @@ With @samp{--verbose}, the size totals and compression ratio for all files is also displayed, unless some sizes are unknown. With @samp{--quiet}, the title and totals lines are not displayed. -The @code{gzip} format represents the the input size modulo +The @code{gzip} format represents the input size modulo @math{2^32}, so the uncompressed size and compression ratio are listed incorrectly for uncompressed files 4 GB and larger. To work around this problem, you can use the following command to discover a large diff --git a/gzexe.in b/gzexe.in index 139ec61..ed9ac71 100644 --- a/gzexe.in +++ b/gzexe.in @@ -74,8 +74,7 @@ Try \`$0 --help' for more information." fi tmp= -trap ' - res=$? +trap 'res=$? test -n "$tmp" && rm -f "$tmp" (exit $res); exit $res ' 0 1 2 3 5 10 13 15 @@ -145,8 +144,7 @@ umask=`umask` umask 77 gztmpdir= -trap ' - res=$? +trap 'res=$? test -n "$gztmpdir" && rm -fr "$gztmpdir" (exit $res); exit $res ' 0 1 2 3 5 10 13 15 diff --git a/gzip.1 b/gzip.1 index f52d6a0..784d828 100644 --- a/gzip.1 +++ b/gzip.1 @@ -473,7 +473,7 @@ GNU tar. Make sure that the same block size (-b option of tar) is used for reading and writing compressed data on tapes. (This example assumes you are using the GNU version of tar.) .SH BUGS -The gzip format represents the the input size modulo 2^32, so the +The gzip format represents the input size modulo 2^32, so the --list option reports incorrect uncompressed sizes and compression ratios for uncompressed files 4 GB and larger. To work around this problem, you can use the following command to discover a large