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: Tue, 21 Sep 2010 06:07:09 +0000

CVSROOT:        /webcvs/grep
Module name:    grep
Changes by:     Jim Meyering <meyering> 10/09/21 06:07:07

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.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- html_node/Character-Classes-and-Bracket-Expressions.html    2 Apr 2010 
10:26:53 -0000       1.5
+++ html_node/Character-Classes-and-Bracket-Expressions.html    21 Sep 2010 
06:07:06 -0000      1.6
@@ -1,8 +1,8 @@
 <html lang="en">
 <head>
-<title>Character Classes and Bracket Expressions - GNU Grep 2.6.3</title>
+<title>Character Classes and Bracket Expressions - GNU Grep 2.7</title>
 <meta http-equiv="Content-Type" content="text/html">
-<meta name="description" content="GNU Grep 2.6.3">
+<meta name="description" content="GNU Grep 2.7">
 <meta name="generator" content="makeinfo 4.13">
 <link title="Top" rel="start" href="index.html#Top">
 <link rel="up" href="Regular-Expressions.html#Regular-Expressions" 
title="Regular Expressions">
@@ -109,6 +109,7 @@
 
      <br><dt>&lsquo;<samp><span 
class="samp">[:space:]</span></samp>&rsquo;<dd><a 
name="index-space-_0040r_007bcharacter-class_007d-231"></a><a 
name="index-space-characters-232"></a><a 
name="index-whitespace-characters-233"></a>Space characters:
 tab, newline, vertical tab, form feed, carriage return, and space.
+See <a href="Usage.html#Usage">Usage</a>, for more discussion of matching 
newlines.
 
      <br><dt>&lsquo;<samp><span 
class="samp">[:upper:]</span></samp>&rsquo;<dd><a 
name="index-upper-_0040r_007bcharacter-class_007d-234"></a><a 
name="index-upper_002dcase-letters-235"></a>Upper-case letters:
 <code>A B C D E F G H I J K L M N O P Q R S T U V W X Y Z</code>.
@@ -124,6 +125,12 @@
 part of the symbolic names, and must be included in addition to
 the brackets delimiting the bracket expression.)
 
+   <p><a name="invalid_002dbracket_002dexpr"></a>If you mistakenly omit the 
outer brackets, and search for say, &lsquo;<samp><span 
class="samp">[:upper:]</span></samp>&rsquo;,
+GNU <samp><span class="command">grep</span></samp> 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><span 
class="samp">[:epru]</span></samp>&rsquo;. 
+Set the <code>POSIXLY_CORRECT</code> environment variable to disable this 
feature.
+
    <p>Most meta-characters lose their special meaning inside bracket 
expressions.
 
      <dl>



reply via email to

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