fix a bug in word splitting that could potentially drop the first word; complete -p now prefixes the compspec for commands that begin with -' with --'; several builtins updated to use $'...' quoting for output when appropriate

This commit is contained in:
Chet Ramey
2026-04-02 11:02:52 -04:00
parent 55f721c51e
commit 1cbe8c04bb
14 changed files with 199 additions and 149 deletions
+61 -61
View File
@@ -7266,7 +7266,7 @@ Any variable may be used as an indexed array; the declare builtin
explicitly declares an array. There is no maximum limit on the size of
an array, nor any requirement that members be indexed or assigned
contiguously. Indexed arrays are referenced using arithmetic
expressions that must expand to an integer (*note Shell Arithmetic::))
expressions that must expand to an integer (*note Shell Arithmetic::)
and are zero-based; associative arrays use arbitrary strings. Unless
otherwise noted, indexed array indices must be non-negative integers.
@@ -13813,66 +13813,66 @@ 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
Node: The Directory Stack330887
Node: Directory Stack Builtins331687
Node: Controlling the Prompt336135
Node: The Restricted Shell339022
Node: Bash POSIX Mode342118
Node: Shell Compatibility Mode361937
Node: Job Control370947
Node: Job Control Basics371407
Node: Job Control Builtins377778
Node: Job Control Variables384569
Node: Command Line Editing385803
Node: Introduction and Notation387509
Node: Readline Interaction389864
Node: Readline Bare Essentials391055
Node: Readline Movement Commands392866
Node: Readline Killing Commands393865
Node: Readline Arguments395891
Node: Searching396984
Node: Readline Init File399230
Node: Readline Init File Syntax400536
Node: Conditional Init Constructs427490
Node: Sample Init File431878
Node: Bindable Readline Commands435001
Node: Commands For Moving436542
Node: Commands For History439009
Node: Commands For Text444403
Node: Commands For Killing448531
Node: Numeric Arguments451322
Node: Commands For Completion452477
Node: Keyboard Macros458176
Node: Miscellaneous Commands458880
Node: Readline vi Mode466426
Node: Programmable Completion467406
Node: Programmable Completion Builtins477145
Node: A Programmable Completion Example488885
Node: Using History Interactively494233
Node: Bash History Facilities494917
Node: Bash History Builtins498655
Node: History Interaction506253
Node: Event Designators511206
Node: Word Designators512787
Node: Modifiers515182
Node: Installing Bash517122
Node: Basic Installation518241
Node: Compilers and Options522120
Node: Compiling For Multiple Architectures522873
Node: Installation Names524629
Node: Specifying the System Type526866
Node: Sharing Defaults527615
Node: Operation Controls528332
Node: Optional Features529354
Node: Reporting Bugs542080
Node: Major Differences From The Bourne Shell543440
Node: GNU Free Documentation License564870
Node: Indexes590050
Node: Builtin Index590504
Node: Reserved Word Index597605
Node: Variable Index600053
Node: Function Index617469
Node: Concept Index631605

End Tag Table