grep-commit
[Top][All Lists]
Advanced

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

grep branch, master, updated. v3.1-3-gcdd82eb


From: Paul Eggert
Subject: grep branch, master, updated. v3.1-3-gcdd82eb
Date: Tue, 25 Jul 2017 03:55:45 -0400 (EDT)

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  cdd82ebbebe0113d0d252b385cc84e80d8ceac3a (commit)
      from  8d1953300ef03d05fb3864d944d1de81613a9bb6 (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 -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=cdd82ebbebe0113d0d252b385cc84e80d8ceac3a


commit cdd82ebbebe0113d0d252b385cc84e80d8ceac3a
Author: Paul Eggert <address@hidden>
Date:   Tue Jul 25 00:55:01 2017 -0700

    doc: distinguish -w from \<...\>
    
    * doc/grep.texi (Matching Control):
    Give example of why -w differs from \<...\> (Bug#27813).

diff --git a/doc/grep.texi b/doc/grep.texi
index 64df316..24800c9 100644
--- a/doc/grep.texi
+++ b/doc/grep.texi
@@ -235,9 +235,17 @@ or preceded by a non-word constituent character.
 Similarly,
 it must be either at the end of the line
 or followed by a non-word constituent character.
-Word-constituent characters are letters, digits, and the underscore.
+Word constituent characters are letters, digits, and the underscore.
 This option has no effect if @option{-x} is also specified.
 
+Because the @option{-w} option can match a substring that does not
+begin and end with word constituents, it differs from surrounding a
+pattern with @samp{\<} and @samp{\>}.  For example, although
address@hidden -w @@} matches a line containing only @samp{@@}, @samp{grep
+'\<@@\>'} cannot match any line because @samp{@@} is not a
+word constituent.  @xref{The Backslash Character and Special
+Expressions}.
+
 @item -x
 @itemx --line-regexp
 @opindex -x

-----------------------------------------------------------------------

Summary of changes:
 doc/grep.texi | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
grep



reply via email to

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