From 739892e8d4461a8246fa4c6a0ece18a14ce1e51b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 4 Jun 2022 10:26:35 -0700 Subject: [PATCH] doc: document \] and \} * doc/grep.texi (Special Backslash Expressions) (Problematic Expressions): Document that grep supports \] and \} as extensions to POSIX. --- doc/grep.texi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/grep.texi b/doc/grep.texi index c34a1ae..9f2f225 100644 --- a/doc/grep.texi +++ b/doc/grep.texi @@ -1487,6 +1487,12 @@ Match whitespace, it is a synonym for @samp{[[:space:]]}. @item \S Match non-whitespace, it is a synonym for @samp{[^[:space:]]}. +@item \] +Match @samp{]}. + +@item \@} +Match @samp{@}}. + @end table For example, @samp{\brat\b} matches the separate word @samp{rat}, @@ -1641,7 +1647,7 @@ portable scripts should avoid them: @itemize @bullet @item -Special backslash expressions like @samp{\<} and @samp{\b}. +Special backslash expressions like @samp{\b}, @samp{\<}, and @samp{\]}. @xref{Special Backslash Expressions}. @item -- 2.34.1