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
@@ -2,9 +2,9 @@ This is bashref.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.
@@ -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, 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
@@ -1166,14 +1166,14 @@ 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. 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
@@ -9825,8 +9825,8 @@ File: bashref.info, Node: Commands For History, Next: Commands For Text, Prev
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
@@ -13796,114 +13796,114 @@ Node: Lists31039
Node: Compound Commands32991
Node: Looping Constructs34003
Node: Conditional Constructs36555
Node: Command Grouping51855
Node: Coprocesses53350
Node: GNU Parallel56039
Node: Shell Functions56960
Node: Shell Parameters65411
Node: Positional Parameters70315
Node: Special Parameters71408
Node: Shell Expansions74872
Node: Brace Expansion77064
Node: Tilde Expansion80403
Node: Shell Parameter Expansion83361
Node: Command Substitution104212
Node: Arithmetic Expansion108066
Node: Process Substitution109253
Node: Word Splitting110423
Node: Filename Expansion112870
Node: Pattern Matching116097
Node: Quote Removal121866
Node: Redirections122173
Node: Executing Commands132445
Node: Simple Command Expansion133115
Node: Command Search and Execution135226
Node: Command Execution Environment137673
Node: Environment141202
Node: Exit Status143108
Node: Signals145170
Node: Shell Scripts150121
Node: Shell Builtin Commands153428
Node: Bourne Shell Builtins155772
Node: Bash Builtins182494
Node: Modifying Shell Behavior220232
Node: The Set Builtin220577
Node: The Shopt Builtin232612
Node: Special Builtins249668
Node: Shell Variables250660
Node: Bourne Shell Variables251097
Node: Bash Variables253608
Node: Bash Features292895
Node: Invoking Bash293912
Node: Bash Startup Files301145
Node: Interactive Shells306508
Node: What is an Interactive Shell?306919
Node: Is this Shell Interactive?307584
Node: Interactive Shell Behavior308411
Node: Bash Conditional Expressions312175
Node: Shell Arithmetic317595
Node: Aliases320925
Node: Arrays324062
Node: The Directory Stack331767
Node: Directory Stack Builtins332567
Node: Controlling the Prompt337015
Node: The Restricted Shell340137
Node: Bash POSIX Mode343233
Node: Shell Compatibility Mode363195
Node: Job Control372205
Node: Job Control Basics372665
Node: Job Control Builtins379036
Node: Job Control Variables385827
Node: Command Line Editing387061
Node: Introduction and Notation388767
Node: Readline Interaction391122
Node: Readline Bare Essentials392313
Node: Readline Movement Commands394124
Node: Readline Killing Commands395123
Node: Readline Arguments397149
Node: Searching398242
Node: Readline Init File400488
Node: Readline Init File Syntax401794
Node: Conditional Init Constructs428748
Node: Sample Init File433136
Node: Bindable Readline Commands436259
Node: Commands For Moving437800
Node: Commands For History440267
Node: Commands For Text445661
Node: Commands For Killing449789
Node: Numeric Arguments452580
Node: Commands For Completion453735
Node: Keyboard Macros459434
Node: Miscellaneous Commands460138
Node: Readline vi Mode467684
Node: Programmable Completion468664
Node: Programmable Completion Builtins478403
Node: A Programmable Completion Example490143
Node: Using History Interactively495491
Node: Bash History Facilities496175
Node: Bash History Builtins499913
Node: History Interaction507511
Node: Event Designators512464
Node: Word Designators514045
Node: Modifiers516440
Node: Installing Bash518380
Node: Basic Installation519499
Node: Compilers and Options523378
Node: Compiling For Multiple Architectures524131
Node: Installation Names525887
Node: Specifying the System Type528124
Node: Sharing Defaults528873
Node: Operation Controls529590
Node: Optional Features530612
Node: Reporting Bugs543338
Node: Major Differences From The Bourne Shell544698
Node: GNU Free Documentation License566128
Node: Indexes591308
Node: Builtin Index591762
Node: Reserved Word Index598863
Node: Variable Index601311
Node: Function Index618727
Node: Concept Index632863
Node: Command Grouping51870
Node: Coprocesses53365
Node: GNU Parallel56054
Node: Shell Functions56975
Node: Shell Parameters65426
Node: Positional Parameters70330
Node: Special Parameters71423
Node: Shell Expansions74887
Node: Brace Expansion77079
Node: Tilde Expansion80418
Node: Shell Parameter Expansion83376
Node: Command Substitution104227
Node: Arithmetic Expansion108081
Node: Process Substitution109268
Node: Word Splitting110438
Node: Filename Expansion112885
Node: Pattern Matching116112
Node: Quote Removal121881
Node: Redirections122188
Node: Executing Commands132460
Node: Simple Command Expansion133130
Node: Command Search and Execution135241
Node: Command Execution Environment137688
Node: Environment141217
Node: Exit Status143123
Node: Signals145185
Node: Shell Scripts150136
Node: Shell Builtin Commands153443
Node: Bourne Shell Builtins155787
Node: Bash Builtins182509
Node: Modifying Shell Behavior220247
Node: The Set Builtin220592
Node: The Shopt Builtin232627
Node: Special Builtins249683
Node: Shell Variables250675
Node: Bourne Shell Variables251112
Node: Bash Variables253623
Node: Bash Features292910
Node: Invoking Bash293927
Node: Bash Startup Files301160
Node: Interactive Shells306523
Node: What is an Interactive Shell?306934
Node: Is this Shell Interactive?307599
Node: Interactive Shell Behavior308426
Node: Bash Conditional Expressions312190
Node: Shell Arithmetic317610
Node: Aliases320940
Node: Arrays324077
Node: The Directory Stack331782
Node: Directory Stack Builtins332582
Node: Controlling the Prompt337030
Node: The Restricted Shell340152
Node: Bash POSIX Mode343248
Node: Shell Compatibility Mode363210
Node: Job Control372220
Node: Job Control Basics372680
Node: Job Control Builtins379051
Node: Job Control Variables385842
Node: Command Line Editing387076
Node: Introduction and Notation388782
Node: Readline Interaction391137
Node: Readline Bare Essentials392328
Node: Readline Movement Commands394139
Node: Readline Killing Commands395138
Node: Readline Arguments397164
Node: Searching398257
Node: Readline Init File400503
Node: Readline Init File Syntax401809
Node: Conditional Init Constructs428763
Node: Sample Init File433151
Node: Bindable Readline Commands436274
Node: Commands For Moving437815
Node: Commands For History440282
Node: Commands For Text445678
Node: Commands For Killing449806
Node: Numeric Arguments452597
Node: Commands For Completion453752
Node: Keyboard Macros459451
Node: Miscellaneous Commands460155
Node: Readline vi Mode467701
Node: Programmable Completion468681
Node: Programmable Completion Builtins478420
Node: A Programmable Completion Example490160
Node: Using History Interactively495508
Node: Bash History Facilities496192
Node: Bash History Builtins499930
Node: History Interaction507528
Node: Event Designators512481
Node: Word Designators514062
Node: Modifiers516457
Node: Installing Bash518397
Node: Basic Installation519516
Node: Compilers and Options523395
Node: Compiling For Multiple Architectures524148
Node: Installation Names525904
Node: Specifying the System Type528141
Node: Sharing Defaults528890
Node: Operation Controls529607
Node: Optional Features530629
Node: Reporting Bugs543355
Node: Major Differences From The Bourne Shell544715
Node: GNU Free Documentation License566145
Node: Indexes591325
Node: Builtin Index591779
Node: Reserved Word Index598880
Node: Variable Index601328
Node: Function Index618744
Node: Concept Index632880

End Tag Table