Package: gzip Version: 1.6-5+b1 Severity: minor Tags: patch Dear Maintainer,
The patch is in the attachment. Test nr. 6: Change two HYPHEN-MINUSES (code 0x055, 2D) to an em-dash (\[em]), if one is intended. An en-dash is usually surrounded by a space, while an em-dash is used without spaces. "man" (1 byte characters) transforms an en-dash (\[en] to one HYPHEN-MINUS, and an em-dash to two HYPHEN-MINUSES without considering the space around it. 432:\fIfile\fP\^: already has .gz suffix -- no change ##### Test nr. 7: Change (or include a "FIXME" paragraph about) misused SI (metric) numeric prefixes (or names) to the binary ones, like Ki (kibi), Mi (mebi), Gi (gibi), or Ti (tebi), if indicated. If the metric prefixes are correct, add the definitions or an explanation to avoid misunderstanding. 179:a few bytes for the gzip file header, plus 5 bytes every 32K block, ##### Test nr. 8: Protect a full stop (.) with "\&", if it has a blank (white-space) in front of or (ignoring transparent characters to the full stop) after it, and it does not mean an end of a sentence. 50:(A part is delimited by dots.) If the name consists of small parts only, 264:default. (The original name is always saved if the name had to be 265:truncated.) When decompressing, do not restore the original file name 375:transparently. gzip is designed as a complement to tar, not as a 451:(e.g. a symbolic link, socket, FIFO, device file), it is ##### Test nr. 12: Change -- in x--y to \(em (em-dash), or, if an option, to \-\- 8:.RB [ --rsyncable ] 187:.B \-a --ascii 192:.B \-c --stdout --to-stdout 198:.B \-d --decompress --uncompress 201:.B \-f --force 207:and if the option --stdout is also given, copy the input data without change 219:.B \-h --help 222:.B \-k --keep 225:.B \-l --list 239:In combination with the --verbose option, the following fields are also 250:With --name, the uncompressed name, date and time are 253:With --verbose, the size totals and compression ratio for all files 254:is also displayed, unless some sizes are unknown. With --quiet, 257:.B \-L --license 262:.B \-n --no-name 272:.B \-N --name 279:.B \-q --quiet 282:.B \-r --recursive 291:.B --rsyncable 301:.B \-S .suf --suffix .suf 310:.B \-t --test 313:.B \-v --verbose 317:.B \-V --version 320:.B \-# --fast --best 367:size and CRC reported by the --list option applies to the last member 384: for sh: GZIP="-8v --name"; export GZIP 385: for csh: setenv GZIP "-8v --name" 386: for MSDOS: set GZIP=-8v --name 468:and emits a warning by default. You have to use the --quiet option to 472: for sh: GZIP="-q" tar -xfz --block-compress /dev/rst0 473: for csh: (setenv GZIP -q; tar -xfz --block-compr /dev/rst0 488:The --list option reports sizes as -1 and crc as ffffffff if the 491:In some rare cases, the --best option gives worse compression than ##### Test nr. 15: Change the name of a macro for two fonts (e.g., BR and IR) to one letter, if there is only one argument. Add the second argument if needed. It is sometimes part of the first one. 334:.BR \-6 445:.BR \-v ##### Test nr. 17: Change - to \- if it means a minus sign. 233:The uncompressed size is given as -1 for files not in gzip format, 488:The --list option reports sizes as -1 and crc as ffffffff if the 492:the default compression level (-6). On some highly redundant files, ##### Test nr. 20: Use a macro to change to the italic font, instead of \fI [1], if possible. The macros have the italic corrections, but "\c" removes them. [1] man-pages(7) 412:\fIfile\fP\^: not in gzip format 417:\fIfile\fP\^: Corrupt input. Use zcat to recover some data. 423:\fIfile\fP\^: compressed with \fIxx\fP bits, can only handle \fIyy\fP bits 432:\fIfile\fP\^: already has .gz suffix -- no change ##### Test nr. 21: Use the word (in)valid instead of (il)legal if not related to legal matters. See "www.gnu.org/prep/standards". 72:legal. ##### Test nr. 22: Remove space in the first column, if not indented. Use ".in +<number>n" and ".in", ".nf" and ".fi" for an extra indention. 228: compressed size: size of the compressed file 229: uncompressed size: size of the uncompressed file 230: ratio: compression ratio (0.0% if unknown) 231: uncompressed_name: name of the uncompressed file 237: zcat file.Z | wc -c 242: method: compression method 243: crc: the 32-bit CRC of the uncompressed data 244: date & time: time stamp for the uncompressed file 341: gzip -c file1 > foo.gz 342: gzip -c file2 >> foo.gz 346: gunzip -c foo 350: cat file1 file2 356: cat file1 file2 | gzip > foo.gz 360: gzip -c file1 file2 > foo.gz 364: gzip -cd old.gz | gzip > new.gz 370: gzip -cd file.gz | wc -c 384: for sh: GZIP="-8v --name"; export GZIP 385: for csh: setenv GZIP "-8v --name" 386: for MSDOS: set GZIP=-8v --name 421: zcat \fIfile\fP > recover 472: for sh: GZIP="-q" tar -xfz --block-compress /dev/rst0 473: for csh: (setenv GZIP -q; tar -xfz --block-compr /dev/rst0 486: zcat file.gz | wc -c ##### Test nr. 24: Change a HYPHEN-MINUS (code 0x55, 2D) to a minus (\-), if in front of a name for an option. 65:.I gzip -d 102:.I "compress -H" 123:The SCO compress -H format (lzh compression method) does not include a CRC 135:.IR "gunzip -S .zip foo.zip" . 237: zcat file.Z | wc -c 247:(SCO compress -H) and pack. The crc is given as ffffffff for a file 341: gzip -c file1 > foo.gz 342: gzip -c file2 >> foo.gz 346: gunzip -c foo 360: gzip -c file1 file2 > foo.gz 364: gzip -cd old.gz | gzip > new.gz 370: gzip -cd file.gz | wc -c 374:such as tar or zip. GNU tar supports the -z option to invoke gzip 472: for sh: GZIP="-q" tar -xfz --block-compress /dev/rst0 473: for csh: (setenv GZIP -q; tar -xfz --block-compr /dev/rst0 475:In the above example, gzip is invoked implicitly by the -z option of 486: zcat file.gz | wc -c ##### Test nr. 28: Wrong distance between sentences or protect the indicator. 1) Separate the sentences and subordinate clauses; each begins on a new line. See man-pages(7) and "info groff". Or 2) Adjust space between sentences (two spaces), 3) or protect the indicator by adding "\&" after it. The "indicator" is an "end-of-sentence character" (.!?). 50:(A part is delimited by dots.) If the name consists of small parts only, 51:the longest parts are truncated. For example, if file names are limited 58:keeps the original file name and timestamp in the compressed file. These 61:option. This is useful when the compressed file name was truncated or 108:checks a 32 bit CRC. For 112:checks the uncompressed length. The standard 114:format was not designed to allow consistency checks. However 116:is sometimes able to detect a bad .Z file. If you get an error 120:does not complain. This generally means that the standard 129:with the 'deflation' method. This feature is only intended to help 178:slightly larger than the original. The worst case expansion is 180:or an expansion ratio of 0.015% for large files. Note that the actual 188:Ascii text mode: convert end-of-lines using local conventions. This option 189:is supported only on some non-Unix systems. For MSDOS, CR LF is converted 195:independently compressed members. To obtain better compression, 204:is read from or written to a terminal. If the input data is not in 234:such as compressed .Z files. To get the uncompressed size for such a file, 254:is also displayed, unless some sizes are unknown. With --quiet, 264:default. (The original name is always saved if the name had to be 265:truncated.) When decompressing, do not restore the original file name 269:time stamp if present (copy it from the compressed file). This option 274:is the default. When decompressing, restore the original file name and 275:time stamp if present. This option is useful on systems which have 283:Travel the directory structure recursively. If any of the file names 311:Test. Check the compressed file integrity. 314:Verbose. Display the name and percentage reduction for each file compressed 318:Version. Display the version number and compilation options then quit. 337:Multiple compressed files can be concatenated. In this case, 339:will extract all members at once. For example: 353:still be recovered (if the damaged member is removed). However, 368:only. If you need the uncompressed size for all members, you can use: 374:such as tar or zip. GNU tar supports the -z option to invoke gzip 375:transparently. gzip is designed as a complement to tar, not as a 383:explicit command line parameters. For example: 395:file format is specified in P. Deutsch, \s-1GZIP\s0 file format 401:deflation format is specified in P. Deutsch, \s-1DEFLATE\s0 Compressed 407:if an error occurs, exit status is 1. If a warning occurs, exit status is 2. 417:\fIfile\fP\^: Corrupt input. Use zcat to recover some data. 418:The compressed file has been damaged. The data up to the point of failure 451:(e.g. a symbolic link, socket, FIFO, device file), it is 457:for more information. Use the 462:pad the output with zeroes up to a block boundary. When the data is 468:and emits a warning by default. You have to use the --quiet option to 469:suppress the warning. This option can be set in the 476:GNU tar. Make sure that the same block size (-b option of tar) is used 492:the default compression level (-6). On some highly redundant files, ##### -- System Information: Debian Release: buster/sid APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.9.80-2 (SMP w/2 CPU cores) Locale: LANG=is_IS.iso88591, LC_CTYPE=is_IS.iso88591 (charmap=ISO-8859-1), LANGUAGE=is_IS.iso88591 (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages gzip depends on: ii dpkg 1.19.0.5 ii install-info 6.5.0.dfsg.1-2 ii libc6 2.27-2 gzip recommends no packages. Versions of packages gzip suggests: ii less 487-0.1 -- no debconf information -- Bjarni I. Gislason
--- gzip.1 2018-03-26 22:30:58.000000000 +0000 +++ gzip.1.new 2018-03-29 04:36:25.000000000 +0000 @@ -5,7 +5,7 @@ gzip, gunzip, zcat \- compress or expand .ll +8 .B gzip .RB [ " \-acdfhklLnNrtvV19 " ] -.RB [ --rsyncable ] +.RB [ \-\-rsyncable ] .RB [ \-S\ suffix ] [ .I "name \&..." @@ -47,29 +47,33 @@ If the compressed file name is too long truncates it. .I Gzip attempts to truncate only the parts of the file name longer than 3 characters. -(A part is delimited by dots.) If the name consists of small parts only, -the longest parts are truncated. For example, if file names are limited -to 14 characters, gzip.msdos.exe is compressed to gzi.msd.exe.gz. -Names are not truncated on systems which do not have a limit on file name -length. +(A part is delimited by dots.) +If the name consists of small parts only, +the longest parts are truncated. +For example, +if file names are limited to 14 characters, +gzip.msdos.exe is compressed to gzi.msd.exe.gz. +Names are not truncated on systems which do not have a limit on file +name length. .PP By default, .I gzip -keeps the original file name and timestamp in the compressed file. These -are used when decompressing the file with the +keeps the original file name and timestamp in the compressed file. +These are used when decompressing the file with the .B \-N -option. This is useful when the compressed file name was truncated or +option. +This is useful when the compressed file name was truncated or when the time stamp was not preserved after a file transfer. .PP Compressed files can be restored to their original form using -.I gzip -d +.I gzip \-d or .I gunzip or .IR zcat . If the original name saved in the compressed file is not suitable for its file system, a new name is constructed from the original one to make it -legal. +valid. .PP .I gunzip takes a list of files on its command line and replaces each @@ -99,40 +103,46 @@ can currently decompress files created b .IR gzip , .IR zip , .IR compress , -.I "compress -H" +.I "compress \-H" or .IR pack . The detection of the input format is automatic. When using the first two formats, .I gunzip -checks a 32 bit CRC. For +checks a 32 bit CRC. +For .I pack and .I gunzip -checks the uncompressed length. The standard +checks the uncompressed length. +The standard .I compress -format was not designed to allow consistency checks. However +format was not designed to allow consistency checks. +However .I gunzip -is sometimes able to detect a bad .Z file. If you get an error -when uncompressing a .Z file, do not assume that the .Z file is -correct simply because the standard +is sometimes able to detect a bad .Z file. +If you get an error when uncompressing a .Z file, +do not assume that the .Z file is correct simply because the standard .I uncompress -does not complain. This generally means that the standard +does not complain. +This generally means that the standard .I uncompress does not check its input, and happily generates garbage output. -The SCO compress -H format (lzh compression method) does not include a CRC +The SCO compress \-H format (lzh compression method) does not include a CRC but also allows some consistency checks. .PP Files created by .I zip can be uncompressed by gzip only if they have a single member compressed -with the 'deflation' method. This feature is only intended to help -conversion of tar.zip files to the tar.gz format. To extract a +with the 'deflation' method. +This feature is only intended to help conversion of tar.zip files to +the tar.gz format. +To extract a .I zip file with a single member, use a command like .I "gunzip <foo.zip" or -.IR "gunzip -S .zip foo.zip" . +.IR "gunzip \-S .zip foo.zip" . To extract zip files with several members, use .I unzip @@ -175,36 +185,40 @@ or adaptive Huffman coding .RI ( compact ). .PP Compression is always performed, even if the compressed file is -slightly larger than the original. The worst case expansion is -a few bytes for the gzip file header, plus 5 bytes every 32K block, -or an expansion ratio of 0.015% for large files. Note that the actual -number of used disk blocks almost never increases. +slightly larger than the original. +The worst case expansion is a few bytes for the gzip file header, +plus 5 bytes for every block of size 32\ KiB, +or an expansion ratio of 0.015% for large files. +Note that the actual number of used disk blocks almost never +increases. .I gzip preserves the mode, ownership and timestamps of files when compressing or decompressing. .SH OPTIONS .TP -.B \-a --ascii -Ascii text mode: convert end-of-lines using local conventions. This option -is supported only on some non-Unix systems. For MSDOS, CR LF is converted -to LF when compressing, and LF is converted to CR LF when decompressing. +.B \-a \-\-ascii +Ascii text mode: convert end-of-lines using local conventions. +This option is supported only on some non-Unix systems. +For MSDOS, CR LF is converted to LF when compressing, +and LF is converted to CR LF when decompressing. .TP -.B \-c --stdout --to-stdout +.B \-c \-\-stdout \-\-to-stdout Write output on standard output; keep original files unchanged. If there are several input files, the output consists of a sequence of -independently compressed members. To obtain better compression, +independently compressed members. +To obtain better compression, concatenate all input files before compressing them. .TP -.B \-d --decompress --uncompress +.B \-d \-\-decompress \-\-uncompress Decompress. .TP -.B \-f --force +.B \-f \-\-force Force compression or decompression even if the file has multiple links or the corresponding file already exists, or if the compressed data -is read from or written to a terminal. If the input data is not in -a format recognized by +is read from or written to a terminal. +If the input data is not in a format recognized by .IR gzip , -and if the option --stdout is also given, copy the input data without change +and if the option \-\-stdout is also given, copy the input data without change to the standard output: let .I zcat behave as @@ -216,79 +230,95 @@ and when not running in the background, .I gzip prompts to verify whether an existing file should be overwritten. .TP -.B \-h --help +.B \-h \-\-help Display a help screen and quit. .TP -.B \-k --keep +.B \-k \-\-keep Keep (don't delete) input files during compression or decompression. .TP -.B \-l --list +.B \-l \-\-list For each compressed file, list the following fields: - compressed size: size of the compressed file - uncompressed size: size of the uncompressed file - ratio: compression ratio (0.0% if unknown) - uncompressed_name: name of the uncompressed file +.in +4n +.nf +compressed size: size of the compressed file +uncompressed size: size of the uncompressed file +ratio: compression ratio (0.0% if unknown) +uncompressed_name: name of the uncompressed file +.fi +.in -The uncompressed size is given as -1 for files not in gzip format, -such as compressed .Z files. To get the uncompressed size for such a file, +The uncompressed size is given as \-1 for files not in gzip format, +such as compressed .Z files. +To get the uncompressed size for such a file, you can use: - zcat file.Z | wc -c +.in +4n +zcat file.Z | wc \-c +.in -In combination with the --verbose option, the following fields are also +In combination with the \-\-verbose option, the following fields are also displayed: - method: compression method - crc: the 32-bit CRC of the uncompressed data - date & time: time stamp for the uncompressed file +.in +4n +.nf +method: compression method +crc: the 32-bit CRC of the uncompressed data +date & time: time stamp for the uncompressed file +.fi +.in The compression methods currently supported are deflate, compress, lzh -(SCO compress -H) and pack. The crc is given as ffffffff for a file +(SCO compress \-H) and pack. The crc is given as ffffffff for a file not in gzip format. -With --name, the uncompressed name, date and time are +With \-\-name, the uncompressed name, date and time are those stored within the compress file if present. -With --verbose, the size totals and compression ratio for all files -is also displayed, unless some sizes are unknown. With --quiet, +With \-\-verbose, the size totals and compression ratio for all files +is also displayed, unless some sizes are unknown. +With \-\-quiet, the title and totals lines are not displayed. .TP -.B \-L --license +.B \-L \-\-license Display the .I gzip license and quit. .TP -.B \-n --no-name +.B \-n \-\-no-name When compressing, do not save the original file name and time stamp by -default. (The original name is always saved if the name had to be -truncated.) When decompressing, do not restore the original file name -if present (remove only the +default. +(The original name is always saved if the name had to be truncated.) +When decompressing, do not restore the original file name if present +(remove only the .I gzip suffix from the compressed file name) and do not restore the original -time stamp if present (copy it from the compressed file). This option -is the default when decompressing. +time stamp if present (copy it from the compressed file). +This option is the default when decompressing. .TP -.B \-N --name -When compressing, always save the original file name and time stamp; this -is the default. When decompressing, restore the original file name and -time stamp if present. This option is useful on systems which have -a limit on file name length or when the time stamp has been lost after -a file transfer. +.B \-N \-\-name +When compressing, +always save the original file name and time stamp; +this is the default. +When decompressing, +restore the original file name and time stamp if present. +This option is useful on systems which have a limit on file name +length or when the time stamp has been lost after a file transfer. .TP -.B \-q --quiet +.B \-q \-\-quiet Suppress all warnings. .TP -.B \-r --recursive -Travel the directory structure recursively. If any of the file names -specified on the command line are directories, +.B \-r \-\-recursive +Travel the directory structure recursively. +If any of the file names specified on the command line are +directories, .I gzip will descend into the directory and compress all the files it finds there (or decompress them in the case of .I gunzip ). .TP -.B --rsyncable +.B \-\-rsyncable While compressing, synchronize the output occasionally based on the input. This increases size by less than 1 percent most cases, but means that the .BR rsync (1) @@ -298,7 +328,7 @@ when synchronizing two files compressed cannot tell the difference between a compressed file created with this option, and one created without it. .TP -.B \-S .suf --suffix .suf +.B \-S .suf \-\-suffix .suf When compressing, use suffix .suf instead of .gz. Any non-empty suffix can be given, but suffixes other than .z and .gz should be avoided to avoid confusion when files @@ -307,17 +337,17 @@ are transferred to other systems. When decompressing, add .suf to the beginning of the list of suffixes to try, when deriving an output file name from an input file name. .TP -.B \-t --test -Test. Check the compressed file integrity. +.B \-t \-\-test +Test. Check the compressed file integrity. .TP -.B \-v --verbose -Verbose. Display the name and percentage reduction for each file compressed +.B \-v \-\-verbose +Verbose. Display the name and percentage reduction for each file compressed or decompressed. .TP -.B \-V --version -Version. Display the version number and compilation options then quit. +.B \-V \-\-version +Version. Display the version number and compilation options then quit. .TP -.B \-# --fast --best +.B \-# \-\-fast \-\-best Regulate the speed of compression using the specified digit .IR # , where @@ -331,59 +361,84 @@ or .B \-\-best indicates the slowest compression method (best compression). The default compression level is -.BR \-6 +.B \-6 (that is, biased towards high compression at expense of speed). .SH "ADVANCED USAGE" -Multiple compressed files can be concatenated. In this case, +Multiple compressed files can be concatenated. +In this case, .I gunzip -will extract all members at once. For example: +will extract all members at once. +For example: - gzip -c file1 > foo.gz - gzip -c file2 >> foo.gz +.in +6n +.nf +gzip \-c file1 > foo.gz +gzip \-c file2 >> foo.gz +.in +.fi Then - gunzip -c foo +.in +6n +gunzip \-c foo +.in is equivalent to - cat file1 file2 +.in +6n +cat file1 file2 +.in In case of damage to one member of a .gz file, other members can -still be recovered (if the damaged member is removed). However, +still be recovered (if the damaged member is removed). +However, you can get better compression by compressing all members at once: - cat file1 file2 | gzip > foo.gz +.in +6n +cat file1 file2 | gzip > foo.gz +.in compresses better than - gzip -c file1 file2 > foo.gz +.in +6n +gzip \-c file1 file2 > foo.gz +.in If you want to recompress concatenated files to get better compression, do: - gzip -cd old.gz | gzip > new.gz +.in +6n +gzip \-cd old.gz | gzip > new.gz +.in If a compressed file consists of several members, the uncompressed -size and CRC reported by the --list option applies to the last member -only. If you need the uncompressed size for all members, you can use: +size and CRC reported by the \-\-list option applies to the last member +only. +If you need the uncompressed size for all members, you can use: - gzip -cd file.gz | wc -c +.in +6n +gzip \-cd file.gz | wc \-c +.in If you wish to create a single archive file with multiple members so that members can later be extracted independently, use an archiver -such as tar or zip. GNU tar supports the -z option to invoke gzip -transparently. gzip is designed as a complement to tar, not as a -replacement. +such as tar or zip. +GNU tar supports the \-z option to invoke gzip transparently. +gzip is designed as a complement to tar, not as a replacement. .SH "ENVIRONMENT" The environment variable .B GZIP can hold a set of default options for .IR gzip . These options are interpreted first and can be overwritten by -explicit command line parameters. For example: - for sh: GZIP="-8v --name"; export GZIP - for csh: setenv GZIP "-8v --name" - for MSDOS: set GZIP=-8v --name +explicit command line parameters. +For example: +.in +6n +.nf +for sh: GZIP="\-8v \-\-name"; export GZIP +for csh: setenv GZIP "\-8v \-\-name" +for MSDOS: set GZIP=\-8v \-\-name +.fi +.in On Vax/VMS, the name of the environment variable is GZIP_OPT, to avoid a conflict with the symbol set for invocation of the program. @@ -392,35 +447,38 @@ znew(1), zcmp(1), zmore(1), zforce(1), g .PP The .I gzip -file format is specified in P. Deutsch, \s-1GZIP\s0 file format +file format is specified in P.\& Deutsch, \s-1GZIP\s0 file format specification version 4.3, .BR <http://www.ietf.org/rfc/rfc1952.txt> , Internet RFC 1952 (May 1996). The .I zip -deflation format is specified in P. Deutsch, \s-1DEFLATE\s0 Compressed +deflation format is specified in P.\& Deutsch, \s-1DEFLATE\s0 Compressed Data Format Specification version 1.3, .BR <http://www.ietf.org/rfc/rfc1951.txt> , Internet RFC 1951 (May 1996). .SH "DIAGNOSTICS" Exit status is normally 0; -if an error occurs, exit status is 1. If a warning occurs, exit status is 2. +if an error occurs, exit status is 1. +If a warning occurs, exit status is 2. .TP -Usage: gzip [-cdfhklLnNrtvV19] [-S suffix] [file ...] +Usage: gzip [\-cdfhklLnNrtvV19] [\-S suffix] [file ...] Invalid options were specified on the command line. .TP -\fIfile\fP\^: not in gzip format +\fIfile\/\fP\^: not in gzip format The file specified to .I gunzip has not been compressed. .TP -\fIfile\fP\^: Corrupt input. Use zcat to recover some data. -The compressed file has been damaged. The data up to the point of failure -can be recovered using +\fIfile\/\fP\^: Corrupt input. Use zcat to recover some data. +The compressed file has been damaged. +The data up to the point of failure can be recovered using - zcat \fIfile\fP > recover +.in +6n +zcat \fIfile\fP > recover +.in .TP -\fIfile\fP\^: compressed with \fIxx\fP bits, can only handle \fIyy\fP bits +\fIfile\/\fP\^: compressed with \fIxx\fP bits, can only handle \fIyy\fP bits .I File was compressed (using LZW) by a program that could deal with more @@ -429,7 +487,7 @@ than the decompress code on this machine Recompress the file with gzip, which compresses better and uses less memory. .TP -\fIfile\fP\^: already has .gz suffix -- no change +\fIfile\/\fP\^: already has .gz suffix \(em no change The file is assumed to be already compressed. Rename the file and try again. .TP @@ -442,54 +500,64 @@ been corrupted. .TP \fIxx.x%\fP Percentage of the input saved by compression. (Relevant only for -.BR \-v +.B \-v and .BR \-l \.) .TP --- not a regular file or directory: ignored +\-\- not a regular file or directory: ignored When the input file is not a regular file or directory, -(e.g. a symbolic link, socket, FIFO, device file), it is -left unaltered. +(e.g., a symbolic link, socket, FIFO, device file), +it is left unaltered. .TP --- has \fIxx\fP other links: unchanged +\-\- has \fIxx\fP other links: unchanged The input file has links; it is left unchanged. See .IR ln "(1)" -for more information. Use the +for more information. +Use the .B \-f flag to force compression of multiply-linked files. .SH CAVEATS When writing compressed data to a tape, it is generally necessary to -pad the output with zeroes up to a block boundary. When the data is -read and the whole block is passed to +pad the output with zeroes up to a block boundary. +When the data is read and the whole block is passed to .I gunzip for decompression, .I gunzip detects that there is extra trailing garbage after the compressed data -and emits a warning by default. You have to use the --quiet option to -suppress the warning. This option can be set in the +and emits a warning by default. +You have to use the \-\-quiet option to suppress the warning. +This option can be set in the .B GZIP environment variable as in: - for sh: GZIP="-q" tar -xfz --block-compress /dev/rst0 - for csh: (setenv GZIP -q; tar -xfz --block-compr /dev/rst0 +.in +2n +.nf +for sh: GZIP="\-q" tar \-xfz \-\-block-compress /dev/rst0 +for csh: (setenv GZIP \-q; tar \-xfz \-\-block-compr /dev/rst0 +.fi +.in -In the above example, gzip is invoked implicitly by the -z option of -GNU tar. Make sure that the same block size (-b option of tar) is used +In the above example, gzip is invoked implicitly by the \-z option of +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 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 +\-\-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 uncompressed file's true size: - zcat file.gz | wc -c +.in +6n +zcat file.gz | wc \-c +.in -The --list option reports sizes as -1 and crc as ffffffff if the +The \-\-list option reports sizes as \-1 and crc as ffffffff if the compressed file is on a non seekable media. -In some rare cases, the --best option gives worse compression than -the default compression level (-6). On some highly redundant files, +In some rare cases, the \-\-best option gives worse compression than +the default compression level (\-6). +On some highly redundant files, .I compress compresses better than .IR gzip .