CVSROOT: /sources/grep
Module name: grep
Changes by: Karl Berry <karl> 08/12/12 18:12:21
Index: doc/grep.texi
===================================================================
RCS file: /sources/grep/grep/doc/grep.texi,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -b -r1.67 -r1.68
--- doc/grep.texi 12 Dec 2008 18:06:42 -0000 1.67
+++ doc/grep.texi 12 Dec 2008 18:12:21 -0000 1.68
@@ -57,9 +57,7 @@
@menu
* Introduction:: Introduction.
-* Invoking:: Invoking @command{grep}; description of
options.
-* Exit Status:: Exit status returned by @command{grep}.
-* grep Programs:: @command{grep} programs.
+* Invoking:: Command-line options, environment, exit status.
* Regular Expressions:: Regular Expressions.
* Usage:: Examples.
* Reporting Bugs:: Reporting Bugs.
@@ -109,6 +107,8 @@
@menu
* Command-line Options:: Short and long names, grouped by category.
* Environment Variables:: POSIX, GNU generic, and GNU grep specific.
+* Exit Status:: Exit status returned by @command{grep}.
+* grep Programs:: @command{grep} programs.
@end menu
@node Command-line Options
@@ -944,7 +944,9 @@
@node Exit Status
-...@chapter Exit Status
+...@section Exit Status
+...@cindex exit status
+...@cindex return status
Normally, the exit status is 0 if selected lines are found and 1 otherwise.
But the exit status is 2 if an error occurred, unless the @option{-q} or
@@ -959,7 +961,9 @@
@node grep Programs
-...@chapter @command{grep} programs
+...@section @command{grep} Programs
+...@cindex @command{grep} programs
+...@cindex variants of @command{gerp}
@command{grep} searches the named input files
(or standard input if no files are named,