zgrep man page patch documenting which grep options just won't work
authorBdale Garbee <bdale@gag.com>
Tue, 11 Jun 2013 17:50:33 +0000 (11:50 -0600)
committerBdale Garbee <bdale@gag.com>
Tue, 11 Jun 2013 17:50:33 +0000 (11:50 -0600)
debian/changelog
debian/patches/series
debian/patches/zgrep-man-diff [new file with mode: 0644]
zgrep.1

index 06472ac2b2fa5df12bb45557c8c1789cf515a8cc..730c748efac61f311ab78e0987ca37eaed71b6a6 100644 (file)
@@ -1,7 +1,9 @@
 gzip (1.6-1) UNRELEASED; urgency=low
 
-  * new upstream version, closes: #704689
+  * new upstream version, closes: #704689, #690583
   * merge diff from 1.5-1.1 NMU by Thorsten Glaser
+  * patch for zgrep man page from Regid Ichira, closes: #687123
+  * restore rsyncable docs to man page, closes: #688305
 
  -- Bdale Garbee <bdale@gag.com>  Tue, 11 Jun 2013 08:49:52 -0600
 
index 7f6a5565953eb60698b395a70cc74b6142b012ed..3a71b82a84acafbe52e0f7ef24732f130d344263 100644 (file)
@@ -1,2 +1,3 @@
 rsyncable.diff
 sigpipe.diff
+zgrep-man-diff
diff --git a/debian/patches/zgrep-man-diff b/debian/patches/zgrep-man-diff
new file mode 100644 (file)
index 0000000..85a6d29
--- /dev/null
@@ -0,0 +1,26 @@
+--- a/zgrep.1  2012-09-10 03:20:56.541637782 +0300
++++ b/zgrep.1  2012-09-10 03:18:21.000000000 +0300
+@@ -11,7 +11,13 @@ zgrep \- search possibly compressed file
+ invokes
+ .I grep
+ on compressed or gzipped files.
+-All options specified are passed directly to
++These
++.I grep
++options will cause
++.I zgrep
++to terminate with an error code:
++.BI (-[drRzZ] | --di* | --exc* | --inc* | --rec* | --nu*) .
++All other options specified are passed directly to
+ .IR grep .
+ If no file is specified, then the standard input is decompressed
+ if necessary and fed to grep.
+@@ -23,6 +29,8 @@ If the GREP environment variable is set,
+ uses it as the
+ .I grep
+ program to be invoked.
++.SH EXIT CODE
++2 - An option that is not supported was specified.
+ .SH AUTHOR
+ Charles Levert (charles@comm.polymtl.ca)
+ .SH "SEE ALSO"
diff --git a/zgrep.1 b/zgrep.1
index ef37bd8b0660054bc496b25ecdabc8f60ad2056b..acc319505ccfc56663f488d245610321faf21e22 100644 (file)
--- a/zgrep.1
+++ b/zgrep.1
@@ -11,7 +11,13 @@ zgrep \- search possibly compressed files for a regular expression
 invokes
 .I grep
 on compressed or gzipped files.
-All options specified are passed directly to
+These
+.I grep
+options will cause
+.I zgrep
+to terminate with an error code:
+.BI (-[drRzZ] | --di* | --exc* | --inc* | --rec* | --nu*) .
+All other options specified are passed directly to
 .IR grep .
 If no file is specified, then the standard input is decompressed
 if necessary and fed to grep.
@@ -23,6 +29,8 @@ If the GREP environment variable is set,
 uses it as the
 .I grep
 program to be invoked.
+.SH EXIT CODE
+2 - An option that is not supported was specified.
 .SH AUTHOR
 Charles Levert (charles@comm.polymtl.ca)
 .SH "SEE ALSO"