grep-commit
[Top][All Lists]
Advanced

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

Changes to grep/manual/html_node/grep-Programs.html,v


From: Jim Meyering
Subject: Changes to grep/manual/html_node/grep-Programs.html,v
Date: Sat, 13 May 2023 05:23:55 -0400 (EDT)

CVSROOT:        /webcvs/grep
Module name:    grep
Changes by:     Jim Meyering <meyering> 23/05/13 05:23:53

Index: html_node/grep-Programs.html
===================================================================
RCS file: /webcvs/grep/grep/manual/html_node/grep-Programs.html,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -b -r1.34 -r1.35
--- html_node/grep-Programs.html        23 Mar 2023 02:55:21 -0000      1.34
+++ html_node/grep-Programs.html        13 May 2023 09:23:53 -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>grep Programs (GNU Grep 3.10)</title>
+<title>grep Programs (GNU Grep 3.11)</title>
 
-<meta name="description" content="grep Programs (GNU Grep 3.10)">
-<meta name="keywords" content="grep Programs (GNU Grep 3.10)">
+<meta name="description" content="grep Programs (GNU Grep 3.11)">
+<meta name="keywords" content="grep Programs (GNU Grep 3.11)">
 <meta name="resource-type" content="document">
 <meta name="distribution" content="global">
 <meta name="Generator" content="makeinfo">
@@ -106,17 +106,14 @@
 <li>&lsquo;<samp class="samp">\d</samp>&rsquo; matches only the ten ASCII 
digits
 (and &lsquo;<samp class="samp">\D</samp>&rsquo; matches the complement), 
regardless of locale.
 Use &lsquo;<samp class="samp">\p{Nd}</samp>&rsquo; to also match non-ASCII 
digits.
+(The behavior of &lsquo;<samp class="samp">\d</samp>&rsquo; and &lsquo;<samp 
class="samp">\D</samp>&rsquo; is unspecified after
+in-regexp directives like &lsquo;<samp class="samp">(?aD)</samp>&rsquo;.)
 
-<p>When <code class="command">grep</code> is built with PCRE2 10.42 and 
earlier,
-&lsquo;<samp class="samp">\d</samp>&rsquo; and &lsquo;<samp 
class="samp">\D</samp>&rsquo; ignore in-regexp directives like &lsquo;<samp 
class="samp">(?aD)</samp>&rsquo;
-and work like &lsquo;<samp class="samp">[0-9]</samp>&rsquo; and &lsquo;<samp 
class="samp">[^0-9]</samp>&rsquo; 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&rsquo;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 &lsquo;<samp class="samp">(?s)</samp>&rsquo; directive (making 
&lsquo;<samp class="samp">.</samp>&rsquo; match line breaks)



reply via email to

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