mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-09 03:30:48 +02:00
fix mem leak with local BASH_REMATCH
This commit is contained in:
+4
-2
@@ -415,7 +415,9 @@ SSHHEELLLL GGRRAAMMMMAARR
|
||||
Substrings matched by parenthesized subexpressions within the
|
||||
regular expression are saved in the remaining BBAASSHH__RREEMMAATTCCHH in-
|
||||
dices. The element of BBAASSHH__RREEMMAATTCCHH with index _n is the portion
|
||||
of the string matching the _nth parenthesized subexpression.
|
||||
of the string matching the _nth parenthesized subexpression.
|
||||
Bash sets BBAASSHH__RREEMMAATTCCHH in the global scope; declaring it as a
|
||||
local variable will lead to unexpected results.
|
||||
|
||||
Expressions may be combined using the following operators,
|
||||
listed in decreasing order of precedence:
|
||||
@@ -6645,4 +6647,4 @@ BBUUGGSS
|
||||
|
||||
|
||||
|
||||
GNU Bash 5.2 2022 May 17 BASH(1)
|
||||
GNU Bash 5.2 2022 June 3 BASH(1)
|
||||
|
||||
Reference in New Issue
Block a user