Merge tag 'upstream/1.6'
[debian/gzip] / zdiff.1
1 .TH ZDIFF 1
2 .SH NAME
3 zcmp, zdiff \- compare compressed files
4 .SH SYNOPSIS
5 .B zcmp
6 [ cmp_options ] file1
7 [ file2 ]
8 .br
9 .B zdiff
10 [ diff_options ] file1
11 [ file2 ]
12 .SH DESCRIPTION
13 .P
14 .I  Zcmp
15 and
16 .I zdiff
17 are used to invoke the
18 .I cmp
19 or the
20 .I diff
21 program on files compressed via
22 .IR gzip "."
23 All options specified are passed directly to
24 .I cmp
25 or
26 .IR diff "."
27 If only
28 .I file1
29 is specified, it is compared to the uncompressed contents of
30 .IR file1 ".gz."
31 If two files are specified, their contents (uncompressed if necessary) are fed to
32 .I cmp
33 or
34 .IR diff "."
35 The input files are not modified.
36 The exit status from
37 .I cmp
38 or
39 .I diff
40 is preserved.
41 .SH "SEE ALSO"
42 cmp(1), diff(1), zmore(1), zgrep(1), znew(1), zforce(1), gzip(1), gzexe(1)
43 .SH BUGS
44 Messages from the
45 .I cmp
46 or
47 .I diff
48 programs may refer to file names such as "\-" instead of to the file
49 names specified.