summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorKarl Berry <karl@tug.org>2008-12-12 18:12:20 +0000
committerKarl Berry <karl@tug.org>2008-12-12 18:12:20 +0000
commit73d645b9de1753ca76d3e6a9547250ebbbdf634e (patch)
treed589abfdaeb784ed2134a69d91959d7c22f29fd5 /doc
parent4ac8b8a343781f8f38ebb7ed29b8cb89726e1f94 (diff)
downloadgrep-73d645b9de1753ca76d3e6a9547250ebbbdf634e.tar.gz
move exit status and program variants to under Invoking
* doc/grep.texi (Exit Status, grep Programs): move these nodes to under Invoking.
Diffstat (limited to 'doc')
-rw-r--r--doc/grep.texi14
1 files changed, 9 insertions, 5 deletions
diff --git a/doc/grep.texi b/doc/grep.texi
index 434cfae4..a3397fd4 100644
--- a/doc/grep.texi
+++ b/doc/grep.texi
@@ -57,9 +57,7 @@ This manual is for version @value{VERSION} of GNU Grep.
@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 @@ There can be zero or more @var{input_file_names}.
@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 @@ and only when @code{POSIXLY_CORRECT} is not set.
@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 @@ instead of strict equality with@ 2.
@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,