fix readline vi-mode mark commands to prevent errors if user types an arrow key where a mark name is expected; fix for non-ascii characters being included in variable names if the system isalnum(3) returns success for the character

This commit is contained in:
Chet Ramey
2026-08-07 11:46:08 -04:00
parent 9b6349ef40
commit 9c8a70bc9e
24 changed files with 18698 additions and 19440 deletions
+122 -122
View File
@@ -1,9 +1,9 @@
This is bash.info, produced by makeinfo version 7.3 from bashref.texi.
This text is a brief description of the features that are present in the
Bash shell (version 5.3, 1 July 2026).
Bash shell (version 5.3, 9 July 2026).
This is Edition 5.3, last updated 1 July 2026, of The GNU Bash
This is Edition 5.3, last updated 9 July 2026, of The GNU Bash
Reference Manual, for Bash, Version 5.3.
Copyright © 1988-2026 Free Software Foundation, Inc.
@@ -26,10 +26,10 @@ Bash Features
*************
This text is a brief description of the features that are present in the
Bash shell (version 5.3, 1 July 2026). The Bash home page is
Bash shell (version 5.3, 9 July 2026). The Bash home page is
<http://www.gnu.org/software/bash/>.
This is Edition 5.3, last updated 1 July 2026, of The GNU Bash
This is Edition 5.3, last updated 9 July 2026, of The GNU Bash
Reference Manual, for Bash, Version 5.3.
Bash contains features that appear in other popular shells, and some
@@ -1165,14 +1165,14 @@ File: bash.info, Node: Conditional Constructs, Next: Command Grouping, Prev:
quote special pattern characters where that's necessary.
The array variable BASH_REMATCH records which parts of the string
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.
matched the pattern. Bash unsets each element of BASH_REMATCH
before attempting the match, so if there is no match, it remains
empty. 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 if it is not set; if
it is declared as a local variable before running [[, Bash keeps
@@ -9824,8 +9824,8 @@ File: bash.info, Node: Commands For History, Next: Commands For Text, Prev: C
previous command begin with word 0). A negative argument inserts
the Nth word from the end of the previous command. Once the
argument N is computed, this uses the history expansion facilities
to extract the Nth word, as if the !N history expansion had been
specified.
to extract the Nth word, as if the !!:N history expansion had
been specified.
yank-last-arg (M-. or M-_)
Insert last argument to the previous command (the last word of the
@@ -13795,114 +13795,114 @@ Node: Lists30976
Node: Compound Commands32925
Node: Looping Constructs33934
Node: Conditional Constructs36483
Node: Command Grouping51780
Node: Coprocesses53272
Node: GNU Parallel55958
Node: Shell Functions56876
Node: Shell Parameters65324
Node: Positional Parameters70225
Node: Special Parameters71315
Node: Shell Expansions74776
Node: Brace Expansion76965
Node: Tilde Expansion80301
Node: Shell Parameter Expansion83256
Node: Command Substitution104104
Node: Arithmetic Expansion107955
Node: Process Substitution109139
Node: Word Splitting110306
Node: Filename Expansion112750
Node: Pattern Matching115974
Node: Quote Removal121740
Node: Redirections122044
Node: Executing Commands132313
Node: Simple Command Expansion132980
Node: Command Search and Execution135088
Node: Command Execution Environment137532
Node: Environment141058
Node: Exit Status142961
Node: Signals145020
Node: Shell Scripts149968
Node: Shell Builtin Commands153272
Node: Bourne Shell Builtins155613
Node: Bash Builtins182332
Node: Modifying Shell Behavior220067
Node: The Set Builtin220409
Node: The Shopt Builtin232441
Node: Special Builtins249494
Node: Shell Variables250483
Node: Bourne Shell Variables250917
Node: Bash Variables253425
Node: Bash Features292709
Node: Invoking Bash293723
Node: Bash Startup Files300953
Node: Interactive Shells306313
Node: What is an Interactive Shell?306721
Node: Is this Shell Interactive?307383
Node: Interactive Shell Behavior308207
Node: Bash Conditional Expressions311968
Node: Shell Arithmetic317385
Node: Aliases320712
Node: Arrays323846
Node: The Directory Stack331548
Node: Directory Stack Builtins332345
Node: Controlling the Prompt336790
Node: The Restricted Shell339909
Node: Bash POSIX Mode343002
Node: Shell Compatibility Mode362961
Node: Job Control371968
Node: Job Control Basics372425
Node: Job Control Builtins378793
Node: Job Control Variables385581
Node: Command Line Editing386812
Node: Introduction and Notation388515
Node: Readline Interaction390867
Node: Readline Bare Essentials392055
Node: Readline Movement Commands393863
Node: Readline Killing Commands394859
Node: Readline Arguments396882
Node: Searching397972
Node: Readline Init File400215
Node: Readline Init File Syntax401518
Node: Conditional Init Constructs428469
Node: Sample Init File432854
Node: Bindable Readline Commands435974
Node: Commands For Moving437512
Node: Commands For History439976
Node: Commands For Text445367
Node: Commands For Killing449492
Node: Numeric Arguments452280
Node: Commands For Completion453432
Node: Keyboard Macros459128
Node: Miscellaneous Commands459829
Node: Readline vi Mode467372
Node: Programmable Completion468349
Node: Programmable Completion Builtins478085
Node: A Programmable Completion Example489822
Node: Using History Interactively495167
Node: Bash History Facilities495848
Node: Bash History Builtins499583
Node: History Interaction507178
Node: Event Designators512128
Node: Word Designators513706
Node: Modifiers516098
Node: Installing Bash518035
Node: Basic Installation519151
Node: Compilers and Options523027
Node: Compiling For Multiple Architectures523777
Node: Installation Names525530
Node: Specifying the System Type527764
Node: Sharing Defaults528510
Node: Operation Controls529224
Node: Optional Features530243
Node: Reporting Bugs542966
Node: Major Differences From The Bourne Shell544323
Node: GNU Free Documentation License565750
Node: Indexes590927
Node: Builtin Index591378
Node: Reserved Word Index598476
Node: Variable Index600921
Node: Function Index618334
Node: Concept Index632467
Node: Command Grouping51795
Node: Coprocesses53287
Node: GNU Parallel55973
Node: Shell Functions56891
Node: Shell Parameters65339
Node: Positional Parameters70240
Node: Special Parameters71330
Node: Shell Expansions74791
Node: Brace Expansion76980
Node: Tilde Expansion80316
Node: Shell Parameter Expansion83271
Node: Command Substitution104119
Node: Arithmetic Expansion107970
Node: Process Substitution109154
Node: Word Splitting110321
Node: Filename Expansion112765
Node: Pattern Matching115989
Node: Quote Removal121755
Node: Redirections122059
Node: Executing Commands132328
Node: Simple Command Expansion132995
Node: Command Search and Execution135103
Node: Command Execution Environment137547
Node: Environment141073
Node: Exit Status142976
Node: Signals145035
Node: Shell Scripts149983
Node: Shell Builtin Commands153287
Node: Bourne Shell Builtins155628
Node: Bash Builtins182347
Node: Modifying Shell Behavior220082
Node: The Set Builtin220424
Node: The Shopt Builtin232456
Node: Special Builtins249509
Node: Shell Variables250498
Node: Bourne Shell Variables250932
Node: Bash Variables253440
Node: Bash Features292724
Node: Invoking Bash293738
Node: Bash Startup Files300968
Node: Interactive Shells306328
Node: What is an Interactive Shell?306736
Node: Is this Shell Interactive?307398
Node: Interactive Shell Behavior308222
Node: Bash Conditional Expressions311983
Node: Shell Arithmetic317400
Node: Aliases320727
Node: Arrays323861
Node: The Directory Stack331563
Node: Directory Stack Builtins332360
Node: Controlling the Prompt336805
Node: The Restricted Shell339924
Node: Bash POSIX Mode343017
Node: Shell Compatibility Mode362976
Node: Job Control371983
Node: Job Control Basics372440
Node: Job Control Builtins378808
Node: Job Control Variables385596
Node: Command Line Editing386827
Node: Introduction and Notation388530
Node: Readline Interaction390882
Node: Readline Bare Essentials392070
Node: Readline Movement Commands393878
Node: Readline Killing Commands394874
Node: Readline Arguments396897
Node: Searching397987
Node: Readline Init File400230
Node: Readline Init File Syntax401533
Node: Conditional Init Constructs428484
Node: Sample Init File432869
Node: Bindable Readline Commands435989
Node: Commands For Moving437527
Node: Commands For History439991
Node: Commands For Text445384
Node: Commands For Killing449509
Node: Numeric Arguments452297
Node: Commands For Completion453449
Node: Keyboard Macros459145
Node: Miscellaneous Commands459846
Node: Readline vi Mode467389
Node: Programmable Completion468366
Node: Programmable Completion Builtins478102
Node: A Programmable Completion Example489839
Node: Using History Interactively495184
Node: Bash History Facilities495865
Node: Bash History Builtins499600
Node: History Interaction507195
Node: Event Designators512145
Node: Word Designators513723
Node: Modifiers516115
Node: Installing Bash518052
Node: Basic Installation519168
Node: Compilers and Options523044
Node: Compiling For Multiple Architectures523794
Node: Installation Names525547
Node: Specifying the System Type527781
Node: Sharing Defaults528527
Node: Operation Controls529241
Node: Optional Features530260
Node: Reporting Bugs542983
Node: Major Differences From The Bourne Shell544340
Node: GNU Free Documentation License565767
Node: Indexes590944
Node: Builtin Index591395
Node: Reserved Word Index598493
Node: Variable Index600938
Node: Function Index618351
Node: Concept Index632484

End Tag Table