update fix to save history if fatal signal arrives during $PROMPT_COMMAND execution; fix issue with extglob and empty patterns preceding pattern beginning with a `.'

This commit is contained in:
Chet Ramey
2026-03-24 10:10:30 -04:00
parent 1f292e433e
commit 55f721c51e
22 changed files with 3626 additions and 3540 deletions
+148 -146
View File
@@ -2,9 +2,9 @@ This is bashref.info, produced by makeinfo version 7.2 from
bashref.texi.
This text is a brief description of the features that are present in the
Bash shell (version 5.3, 3 March 2026).
Bash shell (version 5.3, 16 March 2026).
This is Edition 5.3, last updated 3 March 2026, of The GNU Bash
This is Edition 5.3, last updated 16 March 2026, of The GNU Bash
Reference Manual, for Bash, Version 5.3.
Copyright © 1988-2026 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.3, 3 March 2026). The Bash home page is
Bash shell (version 5.3, 16 March 2026). The Bash home page is
<http://www.gnu.org/software/bash/>.
This is Edition 5.3, last updated 3 March 2026, of The GNU Bash
This is Edition 5.3, last updated 16 March 2026, of The GNU Bash
Reference Manual, for Bash, Version 5.3.
Bash contains features that appear in other popular shells, and some
@@ -1166,16 +1166,18 @@ File: bashref.info, Node: Conditional Constructs, Next: Command Grouping, Pre
quote special pattern characters where that's necessary.
The array variable BASH_REMATCH records which parts of the string
matched the pattern. The element of BASH_REMATCH with index 0
contains the portion of the string matching the entire regular
expression. Substrings matched by parenthesized subexpressions
within the regular expression are saved in the remaining
BASH_REMATCH indices. The element of BASH_REMATCH with index N
is the portion of the string matching the Nth parenthesized
subexpression.
matched the pattern. Bash unsets BASH_REMATCH before attempting
the match, so if there is no match, it remains unset. The element
of BASH_REMATCH with index 0 contains the portion of the string
matching the entire regular expression. Substrings matched by
parenthesized subexpressions within the regular expression are
saved in the remaining BASH_REMATCH indices. The element of
BASH_REMATCH with index N 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.
Bash sets BASH_REMATCH in the global scope if it is not set; if
it is declared as a local variable before running [[, Bash keeps
it a local variable.
Expressions may be combined using the following operators, listed
in decreasing order of precedence:
@@ -4530,7 +4532,7 @@ standard.
Bash Builtins::).
%q
Causes printf to output the corresponding ARGUMENT in a
format that can be reused as shell input. %q and %QP use
format that can be reused as shell input. %q and %Q use
the ANSI-C quoting style (*note ANSI-C Quoting::) if any
characters in the argument string require it, and backslash
quoting otherwise. If the format string uses the printf
@@ -13739,138 +13741,138 @@ D.5 Concept Index

Tag Table:
Node: Top896
Node: Introduction2832
Node: What is Bash?3048
Node: What is a shell?4184
Node: Definitions6797
Node: Basic Shell Features10127
Node: Shell Syntax11354
Node: Shell Operation12384
Node: Quoting13678
Node: Escape Character15019
Node: Single Quotes15557
Node: Double Quotes15909
Node: ANSI-C Quoting17257
Node: Locale Translation18654
Node: Creating Internationalized Scripts20060
Node: Comments24261
Node: Shell Commands25031
Node: Reserved Words25973
Node: Simple Commands27119
Node: Pipelines27784
Node: Lists31043
Node: Compound Commands32995
Node: Looping Constructs34007
Node: Conditional Constructs36559
Node: Command Grouping51699
Node: Coprocesses53194
Node: GNU Parallel55883
Node: Shell Functions56804
Node: Shell Parameters65255
Node: Positional Parameters70159
Node: Special Parameters71252
Node: Shell Expansions74716
Node: Brace Expansion76908
Node: Tilde Expansion80247
Node: Shell Parameter Expansion83205
Node: Command Substitution104056
Node: Arithmetic Expansion107910
Node: Process Substitution109089
Node: Word Splitting110200
Node: Filename Expansion112647
Node: Pattern Matching115874
Node: Quote Removal121643
Node: Redirections121950
Node: Executing Commands132209
Node: Simple Command Expansion132879
Node: Command Search and Execution134990
Node: Command Execution Environment137437
Node: Environment140966
Node: Exit Status142872
Node: Signals144934
Node: Shell Scripts149885
Node: Shell Builtin Commands153186
Node: Bourne Shell Builtins155530
Node: Bash Builtins182252
Node: Modifying Shell Behavior219991
Node: The Set Builtin220336
Node: The Shopt Builtin232333
Node: Special Builtins249389
Node: Shell Variables250381
Node: Bourne Shell Variables250818
Node: Bash Variables253329
Node: Bash Features292616
Node: Invoking Bash293633
Node: Bash Startup Files300220
Node: Interactive Shells305465
Node: What is an Interactive Shell?305876
Node: Is this Shell Interactive?306541
Node: Interactive Shell Behavior307368
Node: Bash Conditional Expressions311132
Node: Shell Arithmetic316552
Node: Aliases319882
Node: Arrays323019
Node: The Directory Stack330725
Node: Directory Stack Builtins331525
Node: Controlling the Prompt335973
Node: The Restricted Shell338860
Node: Bash POSIX Mode341956
Node: Shell Compatibility Mode361775
Node: Job Control370785
Node: Job Control Basics371245
Node: Job Control Builtins377616
Node: Job Control Variables384407
Node: Command Line Editing385641
Node: Introduction and Notation387347
Node: Readline Interaction389702
Node: Readline Bare Essentials390893
Node: Readline Movement Commands392704
Node: Readline Killing Commands393703
Node: Readline Arguments395729
Node: Searching396822
Node: Readline Init File399068
Node: Readline Init File Syntax400374
Node: Conditional Init Constructs427328
Node: Sample Init File431716
Node: Bindable Readline Commands434839
Node: Commands For Moving436380
Node: Commands For History438847
Node: Commands For Text444241
Node: Commands For Killing448369
Node: Numeric Arguments451160
Node: Commands For Completion452315
Node: Keyboard Macros458014
Node: Miscellaneous Commands458718
Node: Readline vi Mode466264
Node: Programmable Completion467244
Node: Programmable Completion Builtins476983
Node: A Programmable Completion Example488723
Node: Using History Interactively494071
Node: Bash History Facilities494755
Node: Bash History Builtins498493
Node: History Interaction506091
Node: Event Designators511044
Node: Word Designators512625
Node: Modifiers515020
Node: Installing Bash516960
Node: Basic Installation518079
Node: Compilers and Options521958
Node: Compiling For Multiple Architectures522711
Node: Installation Names524467
Node: Specifying the System Type526704
Node: Sharing Defaults527453
Node: Operation Controls528170
Node: Optional Features529192
Node: Reporting Bugs541918
Node: Major Differences From The Bourne Shell543278
Node: GNU Free Documentation License564708
Node: Indexes589888
Node: Builtin Index590342
Node: Reserved Word Index597443
Node: Variable Index599891
Node: Function Index617307
Node: Concept Index631443
Node: Top898
Node: Introduction2836
Node: What is Bash?3052
Node: What is a shell?4188
Node: Definitions6801
Node: Basic Shell Features10131
Node: Shell Syntax11358
Node: Shell Operation12388
Node: Quoting13682
Node: Escape Character15023
Node: Single Quotes15561
Node: Double Quotes15913
Node: ANSI-C Quoting17261
Node: Locale Translation18658
Node: Creating Internationalized Scripts20064
Node: Comments24265
Node: Shell Commands25035
Node: Reserved Words25977
Node: Simple Commands27123
Node: Pipelines27788
Node: Lists31047
Node: Compound Commands32999
Node: Looping Constructs34011
Node: Conditional Constructs36563
Node: Command Grouping51863
Node: Coprocesses53358
Node: GNU Parallel56047
Node: Shell Functions56968
Node: Shell Parameters65419
Node: Positional Parameters70323
Node: Special Parameters71416
Node: Shell Expansions74880
Node: Brace Expansion77072
Node: Tilde Expansion80411
Node: Shell Parameter Expansion83369
Node: Command Substitution104220
Node: Arithmetic Expansion108074
Node: Process Substitution109253
Node: Word Splitting110364
Node: Filename Expansion112811
Node: Pattern Matching116038
Node: Quote Removal121807
Node: Redirections122114
Node: Executing Commands132373
Node: Simple Command Expansion133043
Node: Command Search and Execution135154
Node: Command Execution Environment137601
Node: Environment141130
Node: Exit Status143036
Node: Signals145098
Node: Shell Scripts150049
Node: Shell Builtin Commands153350
Node: Bourne Shell Builtins155694
Node: Bash Builtins182416
Node: Modifying Shell Behavior220154
Node: The Set Builtin220499
Node: The Shopt Builtin232496
Node: Special Builtins249552
Node: Shell Variables250544
Node: Bourne Shell Variables250981
Node: Bash Variables253492
Node: Bash Features292779
Node: Invoking Bash293796
Node: Bash Startup Files300383
Node: Interactive Shells305628
Node: What is an Interactive Shell?306039
Node: Is this Shell Interactive?306704
Node: Interactive Shell Behavior307531
Node: Bash Conditional Expressions311295
Node: Shell Arithmetic316715
Node: Aliases320045
Node: Arrays323182
Node: The Directory Stack330888
Node: Directory Stack Builtins331688
Node: Controlling the Prompt336136
Node: The Restricted Shell339023
Node: Bash POSIX Mode342119
Node: Shell Compatibility Mode361938
Node: Job Control370948
Node: Job Control Basics371408
Node: Job Control Builtins377779
Node: Job Control Variables384570
Node: Command Line Editing385804
Node: Introduction and Notation387510
Node: Readline Interaction389865
Node: Readline Bare Essentials391056
Node: Readline Movement Commands392867
Node: Readline Killing Commands393866
Node: Readline Arguments395892
Node: Searching396985
Node: Readline Init File399231
Node: Readline Init File Syntax400537
Node: Conditional Init Constructs427491
Node: Sample Init File431879
Node: Bindable Readline Commands435002
Node: Commands For Moving436543
Node: Commands For History439010
Node: Commands For Text444404
Node: Commands For Killing448532
Node: Numeric Arguments451323
Node: Commands For Completion452478
Node: Keyboard Macros458177
Node: Miscellaneous Commands458881
Node: Readline vi Mode466427
Node: Programmable Completion467407
Node: Programmable Completion Builtins477146
Node: A Programmable Completion Example488886
Node: Using History Interactively494234
Node: Bash History Facilities494918
Node: Bash History Builtins498656
Node: History Interaction506254
Node: Event Designators511207
Node: Word Designators512788
Node: Modifiers515183
Node: Installing Bash517123
Node: Basic Installation518242
Node: Compilers and Options522121
Node: Compiling For Multiple Architectures522874
Node: Installation Names524630
Node: Specifying the System Type526867
Node: Sharing Defaults527616
Node: Operation Controls528333
Node: Optional Features529355
Node: Reporting Bugs542081
Node: Major Differences From The Bourne Shell543441
Node: GNU Free Documentation License564871
Node: Indexes590051
Node: Builtin Index590505
Node: Reserved Word Index597606
Node: Variable Index600054
Node: Function Index617470
Node: Concept Index631606

End Tag Table