From 3745eee9b16c1c482b0bc5106d06b857dac41f11 Mon Sep 17 00:00:00 2001 From: Chet Ramey Date: Wed, 7 Dec 2011 09:09:03 -0500 Subject: [PATCH] commit bash-20070606 snapshot --- doc/bash.1 | 2 ++ doc/bashref.texi | 2 ++ 2 files changed, 4 insertions(+) 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 -- 2.47.3