[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Changes to grep/manual/grep.html,v
From: |
Jim Meyering |
Subject: |
Changes to grep/manual/grep.html,v |
Date: |
Sat, 13 May 2023 05:23:53 -0400 (EDT) |
CVSROOT: /webcvs/grep
Module name: grep
Changes by: Jim Meyering <meyering> 23/05/13 05:23:53
Index: grep.html
===================================================================
RCS file: /webcvs/grep/grep/manual/grep.html,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -b -r1.34 -r1.35
--- grep.html 23 Mar 2023 02:55:19 -0000 1.34
+++ grep.html 13 May 2023 09:23:47 -0000 1.35
@@ -14,10 +14,10 @@
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
Texts. A copy of the license is included in the section entitled
"GNU Free Documentation License". -->
-<title>GNU Grep 3.10</title>
+<title>GNU Grep 3.11</title>
-<meta name="description" content="GNU Grep 3.10">
-<meta name="keywords" content="GNU Grep 3.10">
+<meta name="description" content="GNU Grep 3.11">
+<meta name="keywords" content="GNU Grep 3.11">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
@@ -69,7 +69,7 @@
<p><code class="command">grep</code> prints lines that contain a match for one
or more patterns.
</p>
-<p>This manual is for version 3.10 of GNU Grep.
+<p>This manual is for version 3.11 of GNU Grep.
</p>
<p>This manual is for <code class="command">grep</code>, a pattern matching
engine.
</p>
@@ -282,6 +282,7 @@
<p>Obtain patterns from <var class="var">file</var>, one per line.
If this option is used multiple times or is combined with the
<samp class="option">-e</samp> (<samp class="option">--regexp</samp>) option,
search for all patterns given.
+When <var class="var">file</var> is ‘<samp class="samp">-</samp>’,
read patterns from standard input.
The empty file contains zero patterns, and therefore matches nothing.
(<samp class="option">-f</samp> is specified by POSIX.)
</p>
@@ -1323,17 +1324,14 @@
<li>‘<samp class="samp">\d</samp>’ matches only the ten ASCII
digits
(and ‘<samp class="samp">\D</samp>’ matches the complement),
regardless of locale.
Use ‘<samp class="samp">\p{Nd}</samp>’ to also match non-ASCII
digits.
+(The behavior of ‘<samp class="samp">\d</samp>’ and ‘<samp
class="samp">\D</samp>’ is unspecified after
+in-regexp directives like ‘<samp class="samp">(?aD)</samp>’.)
-<p>When <code class="command">grep</code> is built with PCRE2 10.42 and
earlier,
-‘<samp class="samp">\d</samp>’ and ‘<samp
class="samp">\D</samp>’ ignore in-regexp directives like ‘<samp
class="samp">(?aD)</samp>’
-and work like ‘<samp class="samp">[0-9]</samp>’ and ‘<samp
class="samp">[^0-9]</samp>’ respectively.
-However, later versions of PCRE2 likely will fix this,
-and the plan is for <code class="command">grep</code> to respect those
directives if possible.
-</p>
</li><li>Although PCRE tracks the syntax and semantics of Perl’s regular
-expressions, the match is not always exact, partly because Perl
+expressions, the match is not always exact. For example, Perl
evolves and a Perl installation may predate or postdate the PCRE2
-installation on the same host.
+installation on the same host, or their Unicode versions may differ,
+or Perl and PCRE2 may disagree about an obscure construct.
</li><li>By default, <code class="command">grep</code> applies each regexp to
a line at a time,
so the ‘<samp class="samp">(?s)</samp>’ directive (making
‘<samp class="samp">.</samp>’ match line breaks)
@@ -2355,7 +2353,7 @@
and changed to issue obsolescence warnings by GNU Grep 3.8 in 2022;
eventually, they are planned to be removed entirely.
</p>
-<p>If you prefer the old names, you can use use your own substitutes,
+<p>If you prefer the old names, you can use your own substitutes,
such as a shell script named <code class="command">egrep</code> with the
following
contents:
</p>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Changes to grep/manual/grep.html,v,
Jim Meyering <=