grep-commit
[Top][All Lists]
Advanced

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

Changes to grep/manual/html_node/Character-Classes-and-Bracket-Expressio


From: Jim Meyering
Subject: Changes to grep/manual/html_node/Character-Classes-and-Bracket-Expressions.html, v
Date: Sat, 3 Sep 2022 15:33:15 -0400 (EDT)

CVSROOT:        /webcvs/grep
Module name:    grep
Changes by:     Jim Meyering <meyering> 22/09/03 15:33:15

Index: html_node/Character-Classes-and-Bracket-Expressions.html
===================================================================
RCS file: 
/webcvs/grep/grep/manual/html_node/Character-Classes-and-Bracket-Expressions.html,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -b -r1.32 -r1.33
--- html_node/Character-Classes-and-Bracket-Expressions.html    14 Aug 2021 
20:46:40 -0000      1.32
+++ html_node/Character-Classes-and-Bracket-Expressions.html    3 Sep 2022 
19:33:14 -0000       1.33
@@ -5,7 +5,7 @@
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 <!-- This manual is for grep, a pattern matching engine.
 
-Copyright (C) 1999-2002, 2005, 2008-2021 Free Software Foundation,
+Copyright (C) 1999-2002, 2005, 2008-2022 Free Software Foundation,
 Inc.
 
 Permission is granted to copy, distribute and/or modify this document
@@ -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>Character Classes and Bracket Expressions (GNU Grep 3.7)</title>
+<title>Character Classes and Bracket Expressions (GNU Grep 3.8)</title>
 
-<meta name="description" content="Character Classes and Bracket Expressions 
(GNU Grep 3.7)">
-<meta name="keywords" content="Character Classes and Bracket Expressions (GNU 
Grep 3.7)">
+<meta name="description" content="Character Classes and Bracket Expressions 
(GNU Grep 3.8)">
+<meta name="keywords" content="Character Classes and Bracket Expressions (GNU 
Grep 3.8)">
 <meta name="resource-type" content="document">
 <meta name="distribution" content="global">
 <meta name="Generator" content="makeinfo">
@@ -27,7 +27,7 @@
 <link href="Index.html" rel="index" title="Index">
 <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
 <link href="Regular-Expressions.html" rel="up" title="Regular Expressions">
-<link href="The-Backslash-Character-and-Special-Expressions.html" rel="next" 
title="The Backslash Character and Special Expressions">
+<link href="Special-Backslash-Expressions.html" rel="next" title="Special 
Backslash Expressions">
 <link href="Fundamental-Structure.html" rel="prev" title="Fundamental 
Structure">
 <style type="text/css">
 <!--
@@ -57,7 +57,7 @@
 <div class="section" id="Character-Classes-and-Bracket-Expressions">
 <div class="header">
 <p>
-Next: <a href="The-Backslash-Character-and-Special-Expressions.html" 
accesskey="n" rel="next">The Backslash Character and Special Expressions</a>, 
Previous: <a href="Fundamental-Structure.html" accesskey="p" 
rel="prev">Fundamental Structure</a>, Up: <a href="Regular-Expressions.html" 
accesskey="u" rel="up">Regular Expressions</a> &nbsp; [<a 
href="index.html#SEC_Contents" title="Table of contents" 
rel="contents">Contents</a>][<a href="Index.html" title="Index" 
rel="index">Index</a>]</p>
+Next: <a href="Special-Backslash-Expressions.html" accesskey="n" 
rel="next">Special Backslash Expressions</a>, Previous: <a 
href="Fundamental-Structure.html" accesskey="p" rel="prev">Fundamental 
Structure</a>, Up: <a href="Regular-Expressions.html" accesskey="u" 
rel="up">Regular Expressions</a> &nbsp; [<a href="index.html#SEC_Contents" 
title="Table of contents" rel="contents">Contents</a>][<a href="Index.html" 
title="Index" rel="index">Index</a>]</p>
 </div>
 <hr>
 <span id="Character-Classes-and-Bracket-Expressions-1"></span><h3 
class="section">3.2 Character Classes and Bracket Expressions</h3>
@@ -86,7 +86,7 @@
 In other locales, the sorting sequence is not specified, and
 &lsquo;<samp>[a-d]</samp>&rsquo; might be equivalent to 
&lsquo;<samp>[abcd]</samp>&rsquo; or to
 &lsquo;<samp>[aBbCcDd]</samp>&rsquo;, or it might fail to match any character, 
or the set of
-characters that it matches might even be erratic.
+characters that it matches might be erratic, or it might be invalid.
 To obtain the traditional interpretation
 of bracket expressions, you can use the &lsquo;<samp>C</samp>&rsquo; locale by 
setting the
 <code>LC_ALL</code> environment variable to the value 
&lsquo;<samp>C</samp>&rsquo;.
@@ -188,11 +188,10 @@
 part of the symbolic names, and must be included in addition to
 the brackets delimiting the bracket expression.
 </p>
-<span id="invalid_002dbracket_002dexpr"></span><p>If you mistakenly omit the 
outer brackets, and search for say, &lsquo;<samp>[:upper:]</samp>&rsquo;,
+<p>If you mistakenly omit the outer brackets, and search for say, 
&lsquo;<samp>[:upper:]</samp>&rsquo;,
 GNU <code>grep</code> prints a diagnostic and exits with status 2, on
-the assumption that you did not intend to search for the nominally
-equivalent regular expression: &lsquo;<samp>[:epru]</samp>&rsquo;.
-Set the <code>POSIXLY_CORRECT</code> environment variable to disable this 
feature.
+the assumption that you did not intend to search for the
+regular expression &lsquo;<samp>[:epru]</samp>&rsquo;.
 </p>
 <p>Special characters lose their special meaning inside bracket expressions.
 </p>
@@ -230,7 +229,7 @@
 </dd>
 <dt><span>&lsquo;<samp>-</samp>&rsquo;</span></dt>
 <dd><p>represents the range if it&rsquo;s not first or last in a list or the 
ending point
-of a range.
+of a range.  To make the &lsquo;<samp>-</samp>&rsquo; a list item, it is best 
to put it last.
 </p>
 </dd>
 <dt><span>&lsquo;<samp>^</samp>&rsquo;</span></dt>
@@ -245,7 +244,7 @@
 <hr>
 <div class="header">
 <p>
-Next: <a href="The-Backslash-Character-and-Special-Expressions.html">The 
Backslash Character and Special Expressions</a>, Previous: <a 
href="Fundamental-Structure.html">Fundamental Structure</a>, Up: <a 
href="Regular-Expressions.html">Regular Expressions</a> &nbsp; [<a 
href="index.html#SEC_Contents" title="Table of contents" 
rel="contents">Contents</a>][<a href="Index.html" title="Index" 
rel="index">Index</a>]</p>
+Next: <a href="Special-Backslash-Expressions.html">Special Backslash 
Expressions</a>, Previous: <a href="Fundamental-Structure.html">Fundamental 
Structure</a>, Up: <a href="Regular-Expressions.html">Regular Expressions</a> 
&nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" 
rel="contents">Contents</a>][<a href="Index.html" title="Index" 
rel="index">Index</a>]</p>
 </div>
 
 



reply via email to

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