diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/grep.texi | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/doc/grep.texi b/doc/grep.texi index b073fa76..71e19e04 100644 --- a/doc/grep.texi +++ b/doc/grep.texi @@ -1056,8 +1056,6 @@ follow file names must be treated as file names; by default, such options are permuted to the front of the operand list and are treated as options. -Also, @env{POSIXLY_CORRECT} disables special handling of an -invalid bracket expression. @xref{invalid-bracket-expr}. @item _@var{N}_GNU_nonoption_argv_flags_ @vindex _@var{N}_GNU_nonoption_argv_flags_ @r{environment variable} @@ -1401,12 +1399,10 @@ Note that the brackets in these class names are part of the symbolic names, and must be included in addition to the brackets delimiting the bracket expression. -@anchor{invalid-bracket-expr} If you mistakenly omit the outer brackets, and search for say, @samp{[:upper:]}, GNU @command{grep} prints a diagnostic and exits with status 2, on -the assumption that you did not intend to search for the nominally -equivalent regular expression: @samp{[:epru]}. -Set the @env{POSIXLY_CORRECT} environment variable to disable this feature. +the assumption that you did not intend to search for the +regular expression @samp{[:epru]}. Special characters lose their special meaning inside bracket expressions. |