From: Chet Ramey Date: Wed, 7 Dec 2011 14:09:03 +0000 (-0500) Subject: commit bash-20070606 snapshot X-Git-Tag: bash-4.0-alpha~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3745eee9b16c1c482b0bc5106d06b857dac41f11;p=thirdparty%2Fbash.git commit bash-20070606 snapshot --- diff --git a/doc/bash.1 b/doc/bash.1 index 689de6a1e..18c16ba0b 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 3d301b4a5..63dfcee3d 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