patch for zdiff man page
[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 one file is specified, then it is compared to a file with the same name
28 without the
29 .I ".gz"
30 extension. If two files are specified, then they are uncompressed if necessary
31 and fed to
32 .I cmp
33 or
34 .IR diff "."
35 The exit status from
36 .I cmp
37 or
38 .I diff
39 is preserved.
40 .P
41 When both files must be uncompressed before comparison, the second is
42 uncompressed to
43 .IR "/tmp" "."
44 In all other cases,
45 .IR "zdiff" " and " "zcmp"
46 use only a pipe.
47 .SH "SEE ALSO"
48 cmp(1), diff(1), zmore(1), zgrep(1), znew(1), zforce(1), gzip(1), gzexe(1)
49 .SH BUGS
50 Messages from the
51 .I cmp
52 or
53 .I diff
54 programs refer to temporary filenames instead of those specified.