1
0
Fork 0

Adding upstream version 1.4.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-24 05:52:24 +01:00
parent fc648de392
commit 7373a1f041
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
18 changed files with 115 additions and 119 deletions

View file

@ -1,13 +1,9 @@
2015-04-30 Antonio Diaz Diaz <antonio@gnu.org> 2015-05-29 Antonio Diaz Diaz <antonio@gnu.org>
* Version 1.4-pre2 released. * Version 1.4 released.
* zgrep.cc (main): Pass '-e' to grep if pattern begins with '-'.
2015-04-27 Antonio Diaz Diaz <antonio@gnu.org>
* Version 1.4-pre1 released.
* Option '--format' has been renamed to '-O, --force-format'. * Option '--format' has been renamed to '-O, --force-format'.
* Added new option '-M, --format=<list>' to all utilities. * Added new option '-M, --format=<list>' to all utilities.
* zgrep.cc (main): Pass '-e' to grep if pattern begins with '-'.
* Makefile.in: Added new targets 'install*-compress'. * Makefile.in: Added new targets 'install*-compress'.
2014-08-30 Antonio Diaz Diaz <antonio@gnu.org> 2014-08-30 Antonio Diaz Diaz <antonio@gnu.org>

6
NEWS
View file

@ -2,9 +2,9 @@ Changes in version 1.4:
The option "--format" has been renamed to "-O, --force-format". The option "--format" has been renamed to "-O, --force-format".
Option "-M, --format=<list>" now excludes from automatic search the Option "-M, --format=<list>" now restricts automatic search to the
formats not listed in the comma-separated <list>. This change introduces formats listed in the comma-separated <list>. This change introduces a
a backward incompatibility with previous versions of zutils. backward incompatibility with previous versions of zutils.
If the pattern begins with "-", zgrep now prepends "-e" before passing If the pattern begins with "-", zgrep now prepends "-e" before passing
it to grep. ('zgrep -- -pattern file' now works as expected). it to grep. ('zgrep -- -pattern file' now works as expected).

4
README
View file

@ -14,8 +14,8 @@ The provided utilities are zcat, zcmp, zdiff, zgrep, ztest and zupdate.
The supported formats are bzip2, gzip, lzip and xz. The supported formats are bzip2, gzip, lzip and xz.
The compressor to be used for each format is configurable at runtime. The compressor to be used for each format is configurable at runtime.
Zcat, zcmp, zdiff, and zgrep are improved replacements for the shell zcat, zcmp, zdiff, and zgrep are improved replacements for the shell
scripts provided by GNU gzip. Ztest is unique to zutils. Zupdate is scripts provided by GNU gzip. ztest is unique to zutils. zupdate is
similar to gzip's znew. similar to gzip's znew.
NOTE: Bzip2 and lzip provide well-defined values of exit status, which NOTE: Bzip2 and lzip provide well-defined values of exit status, which

2
configure vendored
View file

@ -6,7 +6,7 @@
# to copy, distribute and modify it. # to copy, distribute and modify it.
pkgname=zutils pkgname=zutils
pkgversion=1.4-pre2 pkgversion=1.4
srctrigger=doc/${pkgname}.texi srctrigger=doc/${pkgname}.texi
# clear some things potentially inherited from environment. # clear some things potentially inherited from environment.

View file

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.1. .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.1.
.TH ZCAT "1" "April 2015" "zcat (zutils) 1.4-pre2" "User Commands" .TH ZCAT "1" "May 2015" "zcat (zutils) 1.4" "User Commands"
.SH NAME .SH NAME
zcat \- decompress and concatenate files to standard output zcat \- decompress and concatenate files to standard output
.SH SYNOPSIS .SH SYNOPSIS
@ -39,7 +39,7 @@ equivalent to '\-vE'
display '$' at end of each line display '$' at end of each line
.TP .TP
\fB\-M\fR, \fB\-\-format=\fR<list> \fB\-M\fR, \fB\-\-format=\fR<list>
exclude formats not in <list> process only the formats in <list>
.TP .TP
\fB\-n\fR, \fB\-\-number\fR \fB\-n\fR, \fB\-\-number\fR
number all output lines number all output lines

View file

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.1. .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.1.
.TH ZCMP "1" "April 2015" "zcmp (zutils) 1.4-pre2" "User Commands" .TH ZCMP "1" "May 2015" "zcmp (zutils) 1.4" "User Commands"
.SH NAME .SH NAME
zcmp \- decompress and compare two files byte by byte zcmp \- decompress and compare two files byte by byte
.SH SYNOPSIS .SH SYNOPSIS
@ -46,7 +46,7 @@ ignore differences in the first <n> bytes
list position, value of all differing bytes list position, value of all differing bytes
.TP .TP
\fB\-M\fR, \fB\-\-format=\fR<list> \fB\-M\fR, \fB\-\-format=\fR<list>
exclude formats not in <list> process only the formats in <list>
.TP .TP
\fB\-n\fR, \fB\-\-bytes=\fR<n> \fB\-n\fR, \fB\-\-bytes=\fR<n>
compare at most <n> bytes compare at most <n> bytes

View file

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.1. .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.1.
.TH ZDIFF "1" "April 2015" "zdiff (zutils) 1.4-pre2" "User Commands" .TH ZDIFF "1" "May 2015" "zdiff (zutils) 1.4" "User Commands"
.SH NAME .SH NAME
zdiff \- decompress and compare two files line by line zdiff \- decompress and compare two files line by line
.SH SYNOPSIS .SH SYNOPSIS
@ -61,7 +61,7 @@ ignore changes due to tab expansion
ignore case differences in file contents ignore case differences in file contents
.TP .TP
\fB\-M\fR, \fB\-\-format=\fR<list> \fB\-M\fR, \fB\-\-format=\fR<list>
exclude formats not in <list> process only the formats in <list>
.TP .TP
\fB\-N\fR, \fB\-\-no\-rcfile\fR \fB\-N\fR, \fB\-\-no\-rcfile\fR
don't read runtime configuration file don't read runtime configuration file
@ -104,9 +104,6 @@ set compressor and options for lzip format
.TP .TP
\fB\-\-xz=\fR<command> \fB\-\-xz=\fR<command>
set compressor and options for xz format set compressor and options for xz format
.PP
Numbers may be followed by a multiplier: k = kB = 10^3 = 1000,
Ki = KiB = 2^10 = 1024, M = 10^6, Mi = 2^20, G = 10^9, Gi = 2^30, etc...
.SH "REPORTING BUGS" .SH "REPORTING BUGS"
Report bugs to zutils\-bug@nongnu.org Report bugs to zutils\-bug@nongnu.org
.br .br

View file

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.1. .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.1.
.TH ZGREP "1" "April 2015" "zgrep (zutils) 1.4-pre2" "User Commands" .TH ZGREP "1" "May 2015" "zgrep (zutils) 1.4" "User Commands"
.SH NAME .SH NAME
zgrep \- search compressed files for a regular expression zgrep \- search compressed files for a regular expression
.SH SYNOPSIS .SH SYNOPSIS
@ -79,7 +79,7 @@ only print names of files containing no matches
stop after <n> matches stop after <n> matches
.TP .TP
\fB\-M\fR, \fB\-\-format=\fR<list> \fB\-M\fR, \fB\-\-format=\fR<list>
exclude formats not in <list> process only the formats in <list>
.TP .TP
\fB\-n\fR, \fB\-\-line\-number\fR \fB\-n\fR, \fB\-\-line\-number\fR
print the line number of each line print the line number of each line
@ -125,6 +125,9 @@ set compressor and options for lzip format
.TP .TP
\fB\-\-xz=\fR<command> \fB\-\-xz=\fR<command>
set compressor and options for xz format set compressor and options for xz format
.PP
Numbers may be followed by a multiplier: k = kB = 10^3 = 1000,
Ki = KiB = 2^10 = 1024, M = 10^6, Mi = 2^20, G = 10^9, Gi = 2^30, etc...
.SH "REPORTING BUGS" .SH "REPORTING BUGS"
Report bugs to zutils\-bug@nongnu.org Report bugs to zutils\-bug@nongnu.org
.br .br

View file

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.1. .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.1.
.TH ZTEST "1" "April 2015" "ztest (zutils) 1.4-pre2" "User Commands" .TH ZTEST "1" "May 2015" "ztest (zutils) 1.4" "User Commands"
.SH NAME .SH NAME
ztest \- verify integrity of compressed files ztest \- verify integrity of compressed files
.SH SYNOPSIS .SH SYNOPSIS
@ -28,7 +28,7 @@ display this help and exit
output version information and exit output version information and exit
.TP .TP
\fB\-M\fR, \fB\-\-format=\fR<list> \fB\-M\fR, \fB\-\-format=\fR<list>
exclude formats not in <list> process only the formats in <list>
.TP .TP
\fB\-N\fR, \fB\-\-no\-rcfile\fR \fB\-N\fR, \fB\-\-no\-rcfile\fR
don't read runtime configuration file don't read runtime configuration file

View file

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.1. .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.1.
.TH ZUPDATE "1" "April 2015" "zupdate (zutils) 1.4-pre2" "User Commands" .TH ZUPDATE "1" "May 2015" "zupdate (zutils) 1.4" "User Commands"
.SH NAME .SH NAME
zupdate \- recompress bzip2, gzip, xz files to lzip files zupdate \- recompress bzip2, gzip, xz files to lzip files
.SH SYNOPSIS .SH SYNOPSIS
@ -43,7 +43,7 @@ keep (don't delete) input files
pass a \fB\-v\fR option to the lzip compressor pass a \fB\-v\fR option to the lzip compressor
.TP .TP
\fB\-M\fR, \fB\-\-format=\fR<list> \fB\-M\fR, \fB\-\-format=\fR<list>
exclude formats not in <list> process only the formats in <list>
.TP .TP
\fB\-N\fR, \fB\-\-no\-rcfile\fR \fB\-N\fR, \fB\-\-no\-rcfile\fR
don't read runtime configuration file don't read runtime configuration file

View file

@ -12,7 +12,7 @@ File: zutils.info, Node: Top, Next: Introduction, Up: (dir)
Zutils Manual Zutils Manual
************* *************
This manual is for Zutils (version 1.4-pre2, 30 April 2015). This manual is for Zutils (version 1.4, 29 May 2015).
* Menu: * Menu:
@ -54,8 +54,8 @@ The provided utilities are zcat, zcmp, zdiff, zgrep, ztest and zupdate.
The supported formats are bzip2, gzip, lzip and xz. The supported formats are bzip2, gzip, lzip and xz.
The compressor to be used for each format is configurable at runtime. The compressor to be used for each format is configurable at runtime.
Zcat, zcmp, zdiff, and zgrep are improved replacements for the shell zcat, zcmp, zdiff, and zgrep are improved replacements for the shell
scripts provided by GNU gzip. Ztest is unique to zutils. Zupdate is scripts provided by GNU gzip. ztest is unique to zutils. zupdate is
similar to gzip's znew. similar to gzip's znew.
NOTE: Bzip2 and lzip provide well-defined values of exit status, NOTE: Bzip2 and lzip provide well-defined values of exit status,
@ -63,14 +63,14 @@ which makes them safe to use with zutils. Gzip and xz may return
ambiguous warning values, making them less reliable back ends for ambiguous warning values, making them less reliable back ends for
zutils. *Note compressor-requirements::. zutils. *Note compressor-requirements::.
FORMAT NOTE: The "-format" option allows the processing of a subset FORMAT NOTE: The '--format' option allows the processing of a subset
of formats in search and recursive modes: of formats in search and recursive modes:
'zgrep foo -r --format=bz2,lz somedir'. 'zgrep foo -r --format=bz2,lz somedir'.
FORMAT NOTE 2: If the '--force-format' option is given, the files are FORMAT NOTE 2: If the '--force-format' option is given, the files
passed to the corresponding decompressor without verifying their format, are passed to the corresponding decompressor without verifying their
allowing for example the processing of compress'd (.Z) files with gzip: format, allowing for example the processing of compress'd (.Z) files
'zcmp --force-format=gz file.Z file.lz'. with gzip: 'zcmp --force-format=gz file.Z file.lz'.
LANGUAGE NOTE: Uncompressed = not compressed = plain data; it may LANGUAGE NOTE: Uncompressed = not compressed = plain data; it may
never have been compressed. Decompressed is used to refer to data which never have been compressed. Decompressed is used to refer to data which
@ -105,7 +105,7 @@ described here.
'-h' '-h'
'--help' '--help'
Print an informative help message describing the options and exit. Print an informative help message describing the options and exit.
Zgrep only supports the '--help' form of this option. zgrep only supports the '--help' form of this option.
'-V' '-V'
'--version' '--version'
@ -113,14 +113,14 @@ described here.
'-M FORMAT_LIST' '-M FORMAT_LIST'
'--format=FORMAT_LIST' '--format=FORMAT_LIST'
Exclude formats not listed in the comma-separated FORMAT_LIST. Process only the formats listed in the comma-separated
Valid formats are 'bz2', 'gz', 'lz', 'xz' and 'un' for FORMAT_LIST. Valid formats are 'bz2', 'gz', 'lz', 'xz' and 'un'
'uncompressed', meaning "any file name without a known extension". for 'uncompressed', meaning "any file name without a known
This option excludes files based on extension, instead of format, extension". This option excludes files based on extension, instead
because it is more efficient. The exclusion only applies to names of format, because it is more efficient. The exclusion only
generated automatically (for example when adding extensions to a applies to names generated automatically (for example when adding
file name or when operating recursively on directories). Files extensions to a file name or when operating recursively on
given in the command line are always processed. directories). Files given in the command line are always processed.
Each format in FORMAT_LIST enables file names with the following Each format in FORMAT_LIST enables file names with the following
extensions: extensions:
@ -186,7 +186,7 @@ File: zutils.info, Node: Zcat, Next: Zcmp, Prev: The zutilsrc file, Up: Top
4 Zcat 4 Zcat
****** ******
Zcat copies each given file ('-' means standard input), to standard zcat copies each given file ('-' means standard input), to standard
output. If any given file is compressed, its decompressed content is output. If any given file is compressed, its decompressed content is
used. If a given file does not exist, and its name does not end with one used. If a given file does not exist, and its name does not end with one
of the known extensions, zcat tries the compressed file names of the known extensions, zcat tries the compressed file names
@ -203,7 +203,7 @@ same compression format.
Exit status is 0 if no errors occurred, non-zero otherwise. Exit status is 0 if no errors occurred, non-zero otherwise.
Zcat supports the following options: zcat supports the following options:
'-A' '-A'
'--show-all' '--show-all'
@ -269,7 +269,7 @@ File: zutils.info, Node: Zcmp, Next: Zdiff, Prev: Zcat, Up: Top
5 Zcmp 5 Zcmp
****** ******
Zcmp compares two files ('-' means standard input), and if they differ, zcmp compares two files ('-' means standard input), and if they differ,
tells the first byte and line number where they differ. Bytes and lines tells the first byte and line number where they differ. Bytes and lines
are numbered starting with 1. If any given file is compressed, its are numbered starting with 1. If any given file is compressed, its
decompressed content is used. Compressed files are decompressed on the decompressed content is used. Compressed files are decompressed on the
@ -295,7 +295,7 @@ following:
An exit status of 0 means no differences were found, 1 means some An exit status of 0 means no differences were found, 1 means some
differences were found, and 2 means trouble. differences were found, and 2 means trouble.
Zcmp supports the following options: zcmp supports the following options:
'-b' '-b'
'--print-bytes' '--print-bytes'
@ -346,9 +346,9 @@ File: zutils.info, Node: Zdiff, Next: Zgrep, Prev: Zcmp, Up: Top
6 Zdiff 6 Zdiff
******* *******
Zdiff compares two files ('-' means standard input), and if they zdiff compares two files ('-' means standard input), and if they
differ, shows the differences line by line. If any given file is differ, shows the differences line by line. If any given file is
compressed, its decompressed content is used. Zdiff is a front end to compressed, its decompressed content is used. zdiff is a front end to
the diff program and has the limitation that messages from diff refer to the diff program and has the limitation that messages from diff refer to
temporary file names instead of those specified. temporary file names instead of those specified.
@ -372,7 +372,7 @@ following:
An exit status of 0 means no differences were found, 1 means some An exit status of 0 means no differences were found, 1 means some
differences were found, and 2 means trouble. differences were found, and 2 means trouble.
Zdiff supports the following options: zdiff supports the following options:
'-a' '-a'
'--text' '--text'
@ -453,7 +453,7 @@ File: zutils.info, Node: Zgrep, Next: Ztest, Prev: Zdiff, Up: Top
7 Zgrep 7 Zgrep
******* *******
Zgrep is a front end to the grep program that allows transparent search zgrep is a front end to the grep program that allows transparent search
on any combination of compressed and uncompressed files. If any given on any combination of compressed and uncompressed files. If any given
file is compressed, its decompressed content is used. If a given file file is compressed, its decompressed content is used. If a given file
does not exist, and its name does not end with one of the known does not exist, and its name does not end with one of the known
@ -472,7 +472,7 @@ compression format.
An exit status of 0 means at least one match was found, 1 means no An exit status of 0 means at least one match was found, 1 means no
matches were found, and 2 means trouble. matches were found, and 2 means trouble.
Zgrep supports the following options: zgrep supports the following options:
'-a' '-a'
'--text' '--text'
@ -593,7 +593,7 @@ File: zutils.info, Node: Ztest, Next: Zupdate, Prev: Zgrep, Up: Top
8 Ztest 8 Ztest
******* *******
Ztest verifies the integrity of the specified compressed files. ztest verifies the integrity of the specified compressed files.
Uncompressed files are ignored. If no files are specified, the integrity Uncompressed files are ignored. If no files are specified, the integrity
of compressed data read from standard input is verified. Data read from of compressed data read from standard input is verified. Data read from
standard input must be all in the same compression format. standard input must be all in the same compression format.
@ -609,7 +609,7 @@ The exit status is 0 if all compressed files verify OK, 1 if
environmental problems (file not found, invalid flags, I/O errors, etc), environmental problems (file not found, invalid flags, I/O errors, etc),
2 if any compressed file is corrupt or invalid. 2 if any compressed file is corrupt or invalid.
Ztest supports the following options: ztest supports the following options:
'-O FORMAT' '-O FORMAT'
'--force-format=FORMAT' '--force-format=FORMAT'
@ -641,7 +641,7 @@ File: zutils.info, Node: Zupdate, Next: Problems, Prev: Ztest, Up: Top
9 Zupdate 9 Zupdate
********* *********
Zupdate recompresses files from bzip2, gzip, and xz formats to lzip zupdate recompresses files from bzip2, gzip, and xz formats to lzip
format. The originals are compared with the new files and then deleted. format. The originals are compared with the new files and then deleted.
Only regular files with standard file name extensions are recompressed, Only regular files with standard file name extensions are recompressed,
other files are ignored. Compressed files are decompressed and then other files are ignored. Compressed files are decompressed and then
@ -678,7 +678,7 @@ Exit status is 0 if all the compressed files were successfully
recompressed (if needed), compared and deleted (if requested). Non-zero recompressed (if needed), compared and deleted (if requested). Non-zero
otherwise. otherwise.
Zupdate supports the following options: zupdate supports the following options:
'-f' '-f'
'--force' '--force'
@ -757,18 +757,18 @@ Concept index
 
Tag Table: Tag Table:
Node: Top222 Node: Top222
Node: Introduction1149 Node: Introduction1142
Node: Common options3698 Node: Common options3692
Ref: compressor-requirements5451 Ref: compressor-requirements5450
Node: The zutilsrc file5823 Node: The zutilsrc file5822
Node: Zcat6749 Node: Zcat6748
Node: Zcmp8796 Node: Zcmp8795
Node: Zdiff11256 Node: Zdiff11255
Node: Zgrep13896 Node: Zgrep13895
Node: Ztest16991 Node: Ztest16990
Node: Zupdate18495 Node: Zupdate18494
Node: Problems21370 Node: Problems21369
Node: Concept index21904 Node: Concept index21903
 
End Tag Table End Tag Table

View file

@ -6,8 +6,8 @@
@finalout @finalout
@c %**end of header @c %**end of header
@set UPDATED 30 April 2015 @set UPDATED 29 May 2015
@set VERSION 1.4-pre2 @set VERSION 1.4
@dircategory Data Compression @dircategory Data Compression
@direntry @direntry
@ -74,8 +74,8 @@ The provided utilities are zcat, zcmp, zdiff, zgrep, ztest and zupdate.@*
The supported formats are bzip2, gzip, lzip and xz.@* The supported formats are bzip2, gzip, lzip and xz.@*
The compressor to be used for each format is configurable at runtime. The compressor to be used for each format is configurable at runtime.
Zcat, zcmp, zdiff, and zgrep are improved replacements for the shell zcat, zcmp, zdiff, and zgrep are improved replacements for the shell
scripts provided by GNU gzip. Ztest is unique to zutils. Zupdate is scripts provided by GNU gzip. ztest is unique to zutils. zupdate is
similar to gzip's znew. similar to gzip's znew.
NOTE: Bzip2 and lzip provide well-defined values of exit status, which NOTE: Bzip2 and lzip provide well-defined values of exit status, which
@ -83,14 +83,14 @@ makes them safe to use with zutils. Gzip and xz may return ambiguous
warning values, making them less reliable back ends for zutils. warning values, making them less reliable back ends for zutils.
@xref{compressor-requirements}. @xref{compressor-requirements}.
FORMAT NOTE: The "--format" option allows the processing of a subset of FORMAT NOTE: The @samp{--format} option allows the processing of a
formats in search and recursive modes: subset of formats in search and recursive modes:
@w{@samp{zgrep foo -r --format=bz2,lz somedir}}. @w{@samp{zgrep foo -r --format=bz2,lz somedir}}.
FORMAT NOTE 2: If the @samp{--force-format} option is given, the files are FORMAT NOTE 2: If the @samp{--force-format} option is given, the files
passed to the corresponding decompressor without verifying their format, are passed to the corresponding decompressor without verifying their
allowing for example the processing of compress'd (.Z) files with gzip: format, allowing for example the processing of compress'd (.Z) files
@w{@samp{zcmp --force-format=gz file.Z file.lz}}. with gzip: @w{@samp{zcmp --force-format=gz file.Z file.lz}}.
LANGUAGE NOTE: Uncompressed = not compressed = plain data; it may never LANGUAGE NOTE: Uncompressed = not compressed = plain data; it may never
have been compressed. Decompressed is used to refer to data which has have been compressed. Decompressed is used to refer to data which has
@ -123,10 +123,10 @@ The following options are available in all the utilities. Rather than
writing identical descriptions for each of the programs, they are writing identical descriptions for each of the programs, they are
described here. described here.
@table @samp @table @code
@item -h @item -h
@itemx --help @itemx --help
Print an informative help message describing the options and exit. Zgrep Print an informative help message describing the options and exit. zgrep
only supports the @samp{--help} form of this option. only supports the @samp{--help} form of this option.
@item -V @item -V
@ -135,14 +135,14 @@ Print the version number on the standard output and exit.
@item -M @var{format_list} @item -M @var{format_list}
@itemx --format=@var{format_list} @itemx --format=@var{format_list}
Exclude formats not listed in the comma-separated @var{format_list}. Process only the formats listed in the comma-separated
Valid formats are @samp{bz2}, @samp{gz}, @samp{lz}, @samp{xz} and @var{format_list}. Valid formats are @samp{bz2}, @samp{gz}, @samp{lz},
@samp{un} for @samp{uncompressed}, meaning "any file name without a @samp{xz} and @samp{un} for @samp{uncompressed}, meaning "any file name
known extension". This option excludes files based on extension, instead without a known extension". This option excludes files based on
of format, because it is more efficient. The exclusion only applies to extension, instead of format, because it is more efficient. The
names generated automatically (for example when adding extensions to a exclusion only applies to names generated automatically (for example
file name or when operating recursively on directories). Files given in when adding extensions to a file name or when operating recursively on
the command line are always processed. directories). Files given in the command line are always processed.
Each format in @var{format_list} enables file names with the following Each format in @var{format_list} enables file names with the following
extensions: extensions:
@ -217,7 +217,7 @@ where <format> is one of @samp{bz2}, @samp{gz}, @samp{lz} or @samp{xz}.
@chapter Zcat @chapter Zcat
@cindex zcat @cindex zcat
Zcat copies each given file (@samp{-} means standard input), to standard zcat copies each given file (@samp{-} means standard input), to standard
output. If any given file is compressed, its decompressed content is output. If any given file is compressed, its decompressed content is
used. If a given file does not exist, and its name does not end with one used. If a given file does not exist, and its name does not end with one
of the known extensions, zcat tries the compressed file names of the known extensions, zcat tries the compressed file names
@ -237,9 +237,9 @@ zcat [@var{options}] [@var{files}]
@noindent @noindent
Exit status is 0 if no errors occurred, non-zero otherwise. Exit status is 0 if no errors occurred, non-zero otherwise.
Zcat supports the following options: zcat supports the following options:
@table @samp @table @code
@item -A @item -A
@itemx --show-all @itemx --show-all
Equivalent to @samp{-vET}. Equivalent to @samp{-vET}.
@ -303,7 +303,7 @@ Verbose mode. Show error messages.
@chapter Zcmp @chapter Zcmp
@cindex zcmp @cindex zcmp
Zcmp compares two files (@samp{-} means standard input), and if they zcmp compares two files (@samp{-} means standard input), and if they
differ, tells the first byte and line number where they differ. Bytes differ, tells the first byte and line number where they differ. Bytes
and lines are numbered starting with 1. If any given file is compressed, and lines are numbered starting with 1. If any given file is compressed,
its decompressed content is used. Compressed files are decompressed on its decompressed content is used. Compressed files are decompressed on
@ -336,9 +336,9 @@ standard input.
An exit status of 0 means no differences were found, 1 means some An exit status of 0 means no differences were found, 1 means some
differences were found, and 2 means trouble. differences were found, and 2 means trouble.
Zcmp supports the following options: zcmp supports the following options:
@table @samp @table @code
@item -b @item -b
@itemx --print-bytes @itemx --print-bytes
Print the differing bytes. Print control bytes as a @samp{^} followed by Print the differing bytes. Print control bytes as a @samp{^} followed by
@ -388,9 +388,9 @@ files differ.
@chapter Zdiff @chapter Zdiff
@cindex zdiff @cindex zdiff
Zdiff compares two files (@samp{-} means standard input), and if they zdiff compares two files (@samp{-} means standard input), and if they
differ, shows the differences line by line. If any given file is differ, shows the differences line by line. If any given file is
compressed, its decompressed content is used. Zdiff is a front end to compressed, its decompressed content is used. zdiff is a front end to
the diff program and has the limitation that messages from diff refer to the diff program and has the limitation that messages from diff refer to
temporary file names instead of those specified. temporary file names instead of those specified.
@ -421,9 +421,9 @@ standard input.
An exit status of 0 means no differences were found, 1 means some An exit status of 0 means no differences were found, 1 means some
differences were found, and 2 means trouble. differences were found, and 2 means trouble.
Zdiff supports the following options: zdiff supports the following options:
@table @samp @table @code
@item -a @item -a
@itemx --text @itemx --text
Treat all files as text. Treat all files as text.
@ -503,7 +503,7 @@ Ignore all white space.
@chapter Zgrep @chapter Zgrep
@cindex zgrep @cindex zgrep
Zgrep is a front end to the grep program that allows transparent search zgrep is a front end to the grep program that allows transparent search
on any combination of compressed and uncompressed files. If any given on any combination of compressed and uncompressed files. If any given
file is compressed, its decompressed content is used. If a given file file is compressed, its decompressed content is used. If a given file
does not exist, and its name does not end with one of the known does not exist, and its name does not end with one of the known
@ -525,9 +525,9 @@ zgrep [@var{options}] @var{pattern} [@var{files}]
An exit status of 0 means at least one match was found, 1 means no An exit status of 0 means at least one match was found, 1 means no
matches were found, and 2 means trouble. matches were found, and 2 means trouble.
Zgrep supports the following options: zgrep supports the following options:
@table @samp @table @code
@item -a @item -a
@itemx --text @itemx --text
Treat all files as text. Treat all files as text.
@ -647,7 +647,7 @@ Match only whole lines.
@chapter Ztest @chapter Ztest
@cindex ztest @cindex ztest
Ztest verifies the integrity of the specified compressed files. ztest verifies the integrity of the specified compressed files.
Uncompressed files are ignored. If no files are specified, the integrity Uncompressed files are ignored. If no files are specified, the integrity
of compressed data read from standard input is verified. Data read from of compressed data read from standard input is verified. Data read from
standard input must be all in the same compression format. standard input must be all in the same compression format.
@ -666,9 +666,9 @@ The exit status is 0 if all compressed files verify OK, 1 if
environmental problems (file not found, invalid flags, I/O errors, etc), environmental problems (file not found, invalid flags, I/O errors, etc),
2 if any compressed file is corrupt or invalid. 2 if any compressed file is corrupt or invalid.
Ztest supports the following options: ztest supports the following options:
@table @samp @table @code
@item -O @var{format} @item -O @var{format}
@itemx --force-format=@var{format} @itemx --force-format=@var{format}
Force the given compression format. Valid values for @var{format} are Force the given compression format. Valid values for @var{format} are
@ -699,7 +699,7 @@ Further -v's increase the verbosity level.
@chapter Zupdate @chapter Zupdate
@cindex zupdate @cindex zupdate
Zupdate recompresses files from bzip2, gzip, and xz formats to lzip zupdate recompresses files from bzip2, gzip, and xz formats to lzip
format. The originals are compared with the new files and then deleted. format. The originals are compared with the new files and then deleted.
Only regular files with standard file name extensions are recompressed, Only regular files with standard file name extensions are recompressed,
other files are ignored. Compressed files are decompressed and then other files are ignored. Compressed files are decompressed and then
@ -740,9 +740,9 @@ Exit status is 0 if all the compressed files were successfully
recompressed (if needed), compared and deleted (if requested). Non-zero recompressed (if needed), compared and deleted (if requested). Non-zero
otherwise. otherwise.
Zupdate supports the following options: zupdate supports the following options:
@table @samp @table @code
@item -f @item -f
@itemx --force @itemx --force
Do not skip a file for which a lzip compressed version already exists. Do not skip a file for which a lzip compressed version already exists.

View file

@ -108,7 +108,7 @@ void show_help()
" -b, --number-nonblank number nonblank output lines\n" " -b, --number-nonblank number nonblank output lines\n"
" -e equivalent to '-vE'\n" " -e equivalent to '-vE'\n"
" -E, --show-ends display '$' at end of each line\n" " -E, --show-ends display '$' at end of each line\n"
" -M, --format=<list> exclude formats not in <list>\n" " -M, --format=<list> process only the formats in <list>\n"
" -n, --number number all output lines\n" " -n, --number number all output lines\n"
" -N, --no-rcfile don't read runtime configuration file\n" " -N, --no-rcfile don't read runtime configuration file\n"
" -O, --force-format=<fmt> force given format (bz2, gz, lz, xz)\n" " -O, --force-format=<fmt> force given format (bz2, gz, lz, xz)\n"

View file

@ -73,7 +73,7 @@ void show_help()
" -b, --print-bytes print differing bytes\n" " -b, --print-bytes print differing bytes\n"
" -i, --ignore-initial=<n>[,<n2>] ignore differences in the first <n> bytes\n" " -i, --ignore-initial=<n>[,<n2>] ignore differences in the first <n> bytes\n"
" -l, --list list position, value of all differing bytes\n" " -l, --list list position, value of all differing bytes\n"
" -M, --format=<list> exclude formats not in <list>\n" " -M, --format=<list> process only the formats in <list>\n"
" -n, --bytes=<n> compare at most <n> bytes\n" " -n, --bytes=<n> compare at most <n> bytes\n"
" -N, --no-rcfile don't read runtime configuration file\n" " -N, --no-rcfile don't read runtime configuration file\n"
" -O, --force-format=[<f1>][,<f2>] force given formats (bz2, gz, lz, xz)\n" " -O, --force-format=[<f1>][,<f2>] force given formats (bz2, gz, lz, xz)\n"

View file

@ -76,7 +76,7 @@ void show_help()
" -d, --minimal try hard to find a smaller set of changes\n" " -d, --minimal try hard to find a smaller set of changes\n"
" -E, --ignore-tab-expansion ignore changes due to tab expansion\n" " -E, --ignore-tab-expansion ignore changes due to tab expansion\n"
" -i, --ignore-case ignore case differences in file contents\n" " -i, --ignore-case ignore case differences in file contents\n"
" -M, --format=<list> exclude formats not in <list>\n" " -M, --format=<list> process only the formats in <list>\n"
" -N, --no-rcfile don't read runtime configuration file\n" " -N, --no-rcfile don't read runtime configuration file\n"
" -O, --force-format=[<f1>][,<f2>] force given formats (bz2, gz, lz, xz)\n" " -O, --force-format=[<f1>][,<f2>] force given formats (bz2, gz, lz, xz)\n"
" -p, --show-c-function show which C function each change is in\n" " -p, --show-c-function show which C function each change is in\n"
@ -90,9 +90,7 @@ void show_help()
" --bz2=<command> set compressor and options for bzip2 format\n" " --bz2=<command> set compressor and options for bzip2 format\n"
" --gz=<command> set compressor and options for gzip format\n" " --gz=<command> set compressor and options for gzip format\n"
" --lz=<command> set compressor and options for lzip format\n" " --lz=<command> set compressor and options for lzip format\n"
" --xz=<command> set compressor and options for xz format\n" " --xz=<command> set compressor and options for xz format\n" );
"Numbers may be followed by a multiplier: k = kB = 10^3 = 1000,\n"
"Ki = KiB = 2^10 = 1024, M = 10^6, Mi = 2^20, G = 10^9, Gi = 2^30, etc...\n" );
show_help_addr(); show_help_addr();
} }

View file

@ -79,7 +79,7 @@ void show_help()
" -l, --files-with-matches only print names of files containing matches\n" " -l, --files-with-matches only print names of files containing matches\n"
" -L, --files-without-match only print names of files containing no matches\n" " -L, --files-without-match only print names of files containing no matches\n"
" -m, --max-count=<n> stop after <n> matches\n" " -m, --max-count=<n> stop after <n> matches\n"
" -M, --format=<list> exclude formats not in <list>\n" " -M, --format=<list> process only the formats in <list>\n"
" -n, --line-number print the line number of each line\n" " -n, --line-number print the line number of each line\n"
" -N, --no-rcfile don't read runtime configuration file\n" " -N, --no-rcfile don't read runtime configuration file\n"
" -o, --only-matching show only the part of a line matching <pattern>\n" " -o, --only-matching show only the part of a line matching <pattern>\n"
@ -94,7 +94,9 @@ void show_help()
" --bz2=<command> set compressor and options for bzip2 format\n" " --bz2=<command> set compressor and options for bzip2 format\n"
" --gz=<command> set compressor and options for gzip format\n" " --gz=<command> set compressor and options for gzip format\n"
" --lz=<command> set compressor and options for lzip format\n" " --lz=<command> set compressor and options for lzip format\n"
" --xz=<command> set compressor and options for xz format\n" ); " --xz=<command> set compressor and options for xz format\n"
"Numbers may be followed by a multiplier: k = kB = 10^3 = 1000,\n"
"Ki = KiB = 2^10 = 1024, M = 10^6, Mi = 2^20, G = 10^9, Gi = 2^30, etc...\n" );
show_help_addr(); show_help_addr();
} }

View file

@ -64,7 +64,7 @@ void show_help()
"\nOptions:\n" "\nOptions:\n"
" -h, --help display this help and exit\n" " -h, --help display this help and exit\n"
" -V, --version output version information and exit\n" " -V, --version output version information and exit\n"
" -M, --format=<list> exclude formats not in <list>\n" " -M, --format=<list> process only the formats in <list>\n"
" -N, --no-rcfile don't read runtime configuration file\n" " -N, --no-rcfile don't read runtime configuration file\n"
" -O, --force-format=<fmt> force given format (bz2, gz, lz, xz)\n" " -O, --force-format=<fmt> force given format (bz2, gz, lz, xz)\n"
" -q, --quiet suppress all messages\n" " -q, --quiet suppress all messages\n"

View file

@ -75,7 +75,7 @@ void show_help()
" -f, --force do not skip a file even if the .lz exists\n" " -f, --force do not skip a file even if the .lz exists\n"
" -k, --keep keep (don't delete) input files\n" " -k, --keep keep (don't delete) input files\n"
" -l, --lzip-verbose pass a -v option to the lzip compressor\n" " -l, --lzip-verbose pass a -v option to the lzip compressor\n"
" -M, --format=<list> exclude formats not in <list>\n" " -M, --format=<list> process only the formats in <list>\n"
" -N, --no-rcfile don't read runtime configuration file\n" " -N, --no-rcfile don't read runtime configuration file\n"
" -q, --quiet suppress all messages\n" " -q, --quiet suppress all messages\n"
" -r, --recursive operate recursively on directories\n" " -r, --recursive operate recursively on directories\n"