summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-06-04 10:26:35 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2022-06-04 10:27:50 -0700
commit739892e8d4461a8246fa4c6a0ece18a14ce1e51b (patch)
tree661d87c242fbc0235f341745ec3a3b86b80d45b0 /doc
parent3b66aaf50aaf5f68919adcdc90657d82921eb3d9 (diff)
downloadgrep-739892e8d4461a8246fa4c6a0ece18a14ce1e51b.tar.gz
doc: document \] and \}
* doc/grep.texi (Special Backslash Expressions) (Problematic Expressions): Document that grep supports \] and \} as extensions to POSIX.
Diffstat (limited to 'doc')
-rw-r--r--doc/grep.texi8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/grep.texi b/doc/grep.texi
index c34a1aed..9f2f225a 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