mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-09 11:40:30 +02:00
fix mem leak with local BASH_REMATCH
This commit is contained in:
+115
-112
@@ -2,9 +2,9 @@ This is bashref.info, produced by makeinfo version 6.8 from
|
||||
bashref.texi.
|
||||
|
||||
This text is a brief description of the features that are present in the
|
||||
Bash shell (version 5.2, 17 May 2022).
|
||||
Bash shell (version 5.2, 3 June 2022).
|
||||
|
||||
This is Edition 5.2, last updated 17 May 2022, of 'The GNU Bash
|
||||
This is Edition 5.2, last updated 3 June 2022, of 'The GNU Bash
|
||||
Reference Manual', for 'Bash', Version 5.2.
|
||||
|
||||
Copyright (C) 1988-2022 Free Software Foundation, Inc.
|
||||
@@ -27,10 +27,10 @@ Bash Features
|
||||
*************
|
||||
|
||||
This text is a brief description of the features that are present in the
|
||||
Bash shell (version 5.2, 17 May 2022). The Bash home page is
|
||||
Bash shell (version 5.2, 3 June 2022). The Bash home page is
|
||||
<http://www.gnu.org/software/bash/>.
|
||||
|
||||
This is Edition 5.2, last updated 17 May 2022, of 'The GNU Bash
|
||||
This is Edition 5.2, last updated 3 June 2022, of 'The GNU Bash
|
||||
Reference Manual', for 'Bash', Version 5.2.
|
||||
|
||||
Bash contains features that appear in other popular shells, and some
|
||||
@@ -1145,6 +1145,9 @@ File: bashref.info, Node: Conditional Constructs, Next: Command Grouping, Pre
|
||||
is the portion of the string matching the Nth parenthesized
|
||||
subexpression.
|
||||
|
||||
Bash sets 'BASH_REMATCH' 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:
|
||||
|
||||
@@ -12530,114 +12533,114 @@ Node: Lists29272
|
||||
Node: Compound Commands31067
|
||||
Node: Looping Constructs32079
|
||||
Node: Conditional Constructs34574
|
||||
Node: Command Grouping48918
|
||||
Node: Coprocesses50396
|
||||
Node: GNU Parallel53059
|
||||
Node: Shell Functions53976
|
||||
Node: Shell Parameters61861
|
||||
Node: Positional Parameters66249
|
||||
Node: Special Parameters67151
|
||||
Node: Shell Expansions70365
|
||||
Node: Brace Expansion72492
|
||||
Node: Tilde Expansion75226
|
||||
Node: Shell Parameter Expansion77847
|
||||
Node: Command Substitution96198
|
||||
Node: Arithmetic Expansion97553
|
||||
Node: Process Substitution98521
|
||||
Node: Word Splitting99641
|
||||
Node: Filename Expansion101585
|
||||
Node: Pattern Matching104334
|
||||
Node: Quote Removal108991
|
||||
Node: Redirections109286
|
||||
Node: Executing Commands118946
|
||||
Node: Simple Command Expansion119616
|
||||
Node: Command Search and Execution121726
|
||||
Node: Command Execution Environment124104
|
||||
Node: Environment127139
|
||||
Node: Exit Status128802
|
||||
Node: Signals130586
|
||||
Node: Shell Scripts134035
|
||||
Node: Shell Builtin Commands137062
|
||||
Node: Bourne Shell Builtins139100
|
||||
Node: Bash Builtins160561
|
||||
Node: Modifying Shell Behavior191417
|
||||
Node: The Set Builtin191762
|
||||
Node: The Shopt Builtin202363
|
||||
Node: Special Builtins218275
|
||||
Node: Shell Variables219254
|
||||
Node: Bourne Shell Variables219691
|
||||
Node: Bash Variables221795
|
||||
Node: Bash Features254611
|
||||
Node: Invoking Bash255624
|
||||
Node: Bash Startup Files261637
|
||||
Node: Interactive Shells266768
|
||||
Node: What is an Interactive Shell?267178
|
||||
Node: Is this Shell Interactive?267827
|
||||
Node: Interactive Shell Behavior268642
|
||||
Node: Bash Conditional Expressions272271
|
||||
Node: Shell Arithmetic276913
|
||||
Node: Aliases279857
|
||||
Node: Arrays282470
|
||||
Node: The Directory Stack288861
|
||||
Node: Directory Stack Builtins289645
|
||||
Node: Controlling the Prompt293905
|
||||
Node: The Restricted Shell296870
|
||||
Node: Bash POSIX Mode299480
|
||||
Node: Shell Compatibility Mode311404
|
||||
Node: Job Control319433
|
||||
Node: Job Control Basics319893
|
||||
Node: Job Control Builtins324895
|
||||
Node: Job Control Variables330465
|
||||
Node: Command Line Editing331621
|
||||
Node: Introduction and Notation333292
|
||||
Node: Readline Interaction334915
|
||||
Node: Readline Bare Essentials336106
|
||||
Node: Readline Movement Commands337889
|
||||
Node: Readline Killing Commands338849
|
||||
Node: Readline Arguments340767
|
||||
Node: Searching341811
|
||||
Node: Readline Init File343997
|
||||
Node: Readline Init File Syntax345258
|
||||
Node: Conditional Init Constructs368457
|
||||
Node: Sample Init File372653
|
||||
Node: Bindable Readline Commands375777
|
||||
Node: Commands For Moving376981
|
||||
Node: Commands For History379032
|
||||
Node: Commands For Text384026
|
||||
Node: Commands For Killing387675
|
||||
Node: Numeric Arguments390708
|
||||
Node: Commands For Completion391847
|
||||
Node: Keyboard Macros396038
|
||||
Node: Miscellaneous Commands396725
|
||||
Node: Readline vi Mode402664
|
||||
Node: Programmable Completion403571
|
||||
Node: Programmable Completion Builtins411351
|
||||
Node: A Programmable Completion Example422046
|
||||
Node: Using History Interactively427293
|
||||
Node: Bash History Facilities427977
|
||||
Node: Bash History Builtins430982
|
||||
Node: History Interaction435990
|
||||
Node: Event Designators439610
|
||||
Node: Word Designators440964
|
||||
Node: Modifiers442724
|
||||
Node: Installing Bash444535
|
||||
Node: Basic Installation445672
|
||||
Node: Compilers and Options449394
|
||||
Node: Compiling For Multiple Architectures450135
|
||||
Node: Installation Names451828
|
||||
Node: Specifying the System Type453937
|
||||
Node: Sharing Defaults454653
|
||||
Node: Operation Controls455326
|
||||
Node: Optional Features456284
|
||||
Node: Reporting Bugs467502
|
||||
Node: Major Differences From The Bourne Shell468777
|
||||
Node: GNU Free Documentation License485627
|
||||
Node: Indexes510804
|
||||
Node: Builtin Index511258
|
||||
Node: Reserved Word Index518085
|
||||
Node: Variable Index520533
|
||||
Node: Function Index537307
|
||||
Node: Concept Index551091
|
||||
Node: Command Grouping49041
|
||||
Node: Coprocesses50519
|
||||
Node: GNU Parallel53182
|
||||
Node: Shell Functions54099
|
||||
Node: Shell Parameters61984
|
||||
Node: Positional Parameters66372
|
||||
Node: Special Parameters67274
|
||||
Node: Shell Expansions70488
|
||||
Node: Brace Expansion72615
|
||||
Node: Tilde Expansion75349
|
||||
Node: Shell Parameter Expansion77970
|
||||
Node: Command Substitution96321
|
||||
Node: Arithmetic Expansion97676
|
||||
Node: Process Substitution98644
|
||||
Node: Word Splitting99764
|
||||
Node: Filename Expansion101708
|
||||
Node: Pattern Matching104457
|
||||
Node: Quote Removal109114
|
||||
Node: Redirections109409
|
||||
Node: Executing Commands119069
|
||||
Node: Simple Command Expansion119739
|
||||
Node: Command Search and Execution121849
|
||||
Node: Command Execution Environment124227
|
||||
Node: Environment127262
|
||||
Node: Exit Status128925
|
||||
Node: Signals130709
|
||||
Node: Shell Scripts134158
|
||||
Node: Shell Builtin Commands137185
|
||||
Node: Bourne Shell Builtins139223
|
||||
Node: Bash Builtins160684
|
||||
Node: Modifying Shell Behavior191540
|
||||
Node: The Set Builtin191885
|
||||
Node: The Shopt Builtin202486
|
||||
Node: Special Builtins218398
|
||||
Node: Shell Variables219377
|
||||
Node: Bourne Shell Variables219814
|
||||
Node: Bash Variables221918
|
||||
Node: Bash Features254734
|
||||
Node: Invoking Bash255747
|
||||
Node: Bash Startup Files261760
|
||||
Node: Interactive Shells266891
|
||||
Node: What is an Interactive Shell?267301
|
||||
Node: Is this Shell Interactive?267950
|
||||
Node: Interactive Shell Behavior268765
|
||||
Node: Bash Conditional Expressions272394
|
||||
Node: Shell Arithmetic277036
|
||||
Node: Aliases279980
|
||||
Node: Arrays282593
|
||||
Node: The Directory Stack288984
|
||||
Node: Directory Stack Builtins289768
|
||||
Node: Controlling the Prompt294028
|
||||
Node: The Restricted Shell296993
|
||||
Node: Bash POSIX Mode299603
|
||||
Node: Shell Compatibility Mode311527
|
||||
Node: Job Control319556
|
||||
Node: Job Control Basics320016
|
||||
Node: Job Control Builtins325018
|
||||
Node: Job Control Variables330588
|
||||
Node: Command Line Editing331744
|
||||
Node: Introduction and Notation333415
|
||||
Node: Readline Interaction335038
|
||||
Node: Readline Bare Essentials336229
|
||||
Node: Readline Movement Commands338012
|
||||
Node: Readline Killing Commands338972
|
||||
Node: Readline Arguments340890
|
||||
Node: Searching341934
|
||||
Node: Readline Init File344120
|
||||
Node: Readline Init File Syntax345381
|
||||
Node: Conditional Init Constructs368580
|
||||
Node: Sample Init File372776
|
||||
Node: Bindable Readline Commands375900
|
||||
Node: Commands For Moving377104
|
||||
Node: Commands For History379155
|
||||
Node: Commands For Text384149
|
||||
Node: Commands For Killing387798
|
||||
Node: Numeric Arguments390831
|
||||
Node: Commands For Completion391970
|
||||
Node: Keyboard Macros396161
|
||||
Node: Miscellaneous Commands396848
|
||||
Node: Readline vi Mode402787
|
||||
Node: Programmable Completion403694
|
||||
Node: Programmable Completion Builtins411474
|
||||
Node: A Programmable Completion Example422169
|
||||
Node: Using History Interactively427416
|
||||
Node: Bash History Facilities428100
|
||||
Node: Bash History Builtins431105
|
||||
Node: History Interaction436113
|
||||
Node: Event Designators439733
|
||||
Node: Word Designators441087
|
||||
Node: Modifiers442847
|
||||
Node: Installing Bash444658
|
||||
Node: Basic Installation445795
|
||||
Node: Compilers and Options449517
|
||||
Node: Compiling For Multiple Architectures450258
|
||||
Node: Installation Names451951
|
||||
Node: Specifying the System Type454060
|
||||
Node: Sharing Defaults454776
|
||||
Node: Operation Controls455449
|
||||
Node: Optional Features456407
|
||||
Node: Reporting Bugs467625
|
||||
Node: Major Differences From The Bourne Shell468900
|
||||
Node: GNU Free Documentation License485750
|
||||
Node: Indexes510927
|
||||
Node: Builtin Index511381
|
||||
Node: Reserved Word Index518208
|
||||
Node: Variable Index520656
|
||||
Node: Function Index537430
|
||||
Node: Concept Index551214
|
||||
|
||||
End Tag Table
|
||||
|
||||
|
||||
Reference in New Issue
Block a user