[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grep branch, master, updated. v3.0-2-g96e100a

From: Paul Eggert
Subject: grep branch, master, updated. v3.0-2-g96e100a
Date: Sun, 12 Feb 2017 16:43:39 -0500 (EST)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".

The branch, master has been updated
       via  96e100ad23ec85bf602064298bf86b22cb358525 (commit)
      from  a0f9c60d4e90c34520b291b063ed02c71d3acc80 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------

commit 96e100ad23ec85bf602064298bf86b22cb358525
Author: Paul Eggert <address@hidden>
Date:   Sun Feb 12 13:43:01 2017 -0800

    doc: clarify default input (Bug#25651)
    * doc/
    * src/grep.c (usage): Clarify default input when -r.
    * src/grep.c (usage): Do not bother documenting egrep and fgrep;
    the manual is enough.

diff --git a/doc/ b/doc/
index e3472f7..ed6382b 100644
--- a/doc/
+++ b/doc/
@@ -43,15 +43,19 @@ grep, egrep, fgrep \- print lines matching a pattern
 .B grep
-searches the named input
-for lines containing a match to the given
-If no files are specified, or if the file
+searches for
+in each
 .RB "\*(lq" \- "\*(rq"
-is given,
-.B grep
-searches standard input.
+stands for standard input.
+If no
+is given, recursive searches examine the working directory,
+and nonrecursive searches read standard input.
 By default,
 .B grep
 prints the matching lines.
diff --git a/src/grep.c b/src/grep.c
index 74acb0b..5bc4cd5 100644
--- a/src/grep.c
+++ b/src/grep.c
@@ -1928,16 +1928,15 @@ usage (int status)
       printf (_("Usage: %s [OPTION]... PATTERN [FILE]...\n"), getprogname ());
-      printf (_("Search for PATTERN in each FILE or standard input.\n"));
-      printf (_("PATTERN is, by default, a basic regular expression 
+      printf (_("Search for PATTERN in each FILE.\n"));
       printf (_("\
 Example: %s -i 'hello world' menu.h main.c\n\
-Regexp selection and interpretation:\n"), getprogname ());
+Pattern selection and interpretation:\n"), getprogname ());
       printf (_("\
-  -E, --extended-regexp     PATTERN is an extended regular expression (ERE)\n\
+  -E, --extended-regexp     PATTERN is an extended regular expression\n\
   -F, --fixed-strings       PATTERN is a set of newline-separated strings\n\
-  -G, --basic-regexp        PATTERN is a basic regular expression (BRE)\n\
+  -G, --basic-regexp        PATTERN is a basic regular expression (default)\n\
   -P, --perl-regexp         PATTERN is a Perl regular expression\n"));
   /* -X is deliberately undocumented.  */
       printf (_("\
@@ -2011,11 +2010,8 @@ Context control:\n\
       printf (_("\
-'egrep' means 'grep -E'.  'fgrep' means 'grep -F'.\n\
-Direct invocation as either 'egrep' or 'fgrep' is deprecated.\n"));
-      printf (_("\
-When FILE is -, read standard input.  With no FILE, read . if a command-line\n\
--r is given, - otherwise.  If fewer than two FILEs are given, assume -h.\n\
+When FILE is '-', read standard input.  With no FILE, read '.' if\n\
+recursive, '-' otherwise.  With fewer than two FILEs, assume -h.\n\
 Exit status is 0 if any line is selected, 1 otherwise;\n\
 if any error occurs and -q is not given, the exit status is 2.\n"));
       emit_bug_reporting_address ();


Summary of changes:
 doc/ | 20 ++++++++++++--------
 src/grep.c    | 16 ++++++----------
 2 files changed, 18 insertions(+), 18 deletions(-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]