summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2011-12-07 09:09:03 -0500
committerChet Ramey <chet.ramey@case.edu>2011-12-07 09:09:03 -0500
commit3745eee9b16c1c482b0bc5106d06b857dac41f11 (patch)
treedba60ed01b4156aff64997ca54b725dc809c4fad /doc
parentb1a26c0178f1857ef4e51d0c4fca06b0f0a1db22 (diff)
downloadbash-3745eee9b16c1c482b0bc5106d06b857dac41f11.tar.gz
commit bash-20070606 snapshot
Diffstat (limited to 'doc')
-rw-r--r--doc/bash.12
-rw-r--r--doc/bashref.texi2
2 files changed, 4 insertions, 0 deletions
diff --git a/doc/bash.1 b/doc/bash.1
index 689de6a1..18c16ba0 100644
--- a/doc/bash.1
+++ b/doc/bash.1
@@ -696,6 +696,8 @@ If the shell option
.B nocasematch
is enabled, the match is performed without regard to the case
of alphabetic characters.
+Any part of the pattern may be quoted to force it to be matched as a
+string.
Substrings matched by parenthesized subexpressions within the regular
expression are saved in the array variable \fBBASH_REMATCH\fP.
The element of \fBBASH_REMATCH\fP with index 0 is the portion of the string
diff --git a/doc/bashref.texi b/doc/bashref.texi
index 3d301b4a..63dfcee3 100644
--- a/doc/bashref.texi
+++ b/doc/bashref.texi
@@ -974,6 +974,8 @@ If the shell option @code{nocasematch}
(see the description of @code{shopt} in @ref{The Shopt Builtin})
is enabled, the match is performed without regard to the case
of alphabetic characters.
+Any part of the pattern may be quoted to force it to be matched as a
+string.
Substrings matched by parenthesized subexpressions within the regular
expression are saved in the array variable @code{BASH_REMATCH}.
The element of @code{BASH_REMATCH} with index 0 is the portion of the string