zgrep man page patch documenting which grep options just won't work
[debian/gzip] / debian / patches / zgrep-man-diff
1 --- a/zgrep.1   2012-09-10 03:20:56.541637782 +0300
2 +++ b/zgrep.1   2012-09-10 03:18:21.000000000 +0300
3 @@ -11,7 +11,13 @@ zgrep \- search possibly compressed file
4  invokes
5  .I grep
6  on compressed or gzipped files.
7 -All options specified are passed directly to
8 +These
9 +.I grep
10 +options will cause
11 +.I zgrep
12 +to terminate with an error code:
13 +.BI (-[drRzZ] | --di* | --exc* | --inc* | --rec* | --nu*) .
14 +All other options specified are passed directly to
15  .IR grep .
16  If no file is specified, then the standard input is decompressed
17  if necessary and fed to grep.
18 @@ -23,6 +29,8 @@ If the GREP environment variable is set,
19  uses it as the
20  .I grep
21  program to be invoked.
22 +.SH EXIT CODE
23 +2 - An option that is not supported was specified.
24  .SH AUTHOR
25  Charles Levert (charles@comm.polymtl.ca)
26  .SH "SEE ALSO"