enable MULTIPLE_COPROCS; bind -p/-P can print out bindings for individual command names; changes to Makefile to remove MFLAGS; simplify build tools by assuming C90 compilation environment for better cross-compiling support

This commit is contained in:
Chet Ramey
2024-04-26 16:51:04 -04:00
parent 8c8daff1e3
commit 9c430f6bf3
57 changed files with 4179 additions and 3995 deletions
+194 -183
View File
@@ -2,9 +2,9 @@ This is bashref.info, produced by makeinfo version 7.1 from
bashref.texi.
This text is a brief description of the features that are present in the
Bash shell (version 5.3, 5 April 2024).
Bash shell (version 5.3, 23 April 2024).
This is Edition 5.3, last updated 5 April 2024, of The GNU Bash
This is Edition 5.3, last updated 23 April 2024, of The GNU Bash
Reference Manual, for Bash, Version 5.3.
Copyright © 1988-2023 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, 5 April 2024). The Bash home page is
Bash shell (version 5.3, 23 April 2024). The Bash home page is
<http://www.gnu.org/software/bash/>.
This is Edition 5.3, last updated 5 April 2024, of The GNU Bash
This is Edition 5.3, last updated 23 April 2024, of The GNU Bash
Reference Manual, for Bash, Version 5.3.
Bash contains features that appear in other popular shells, and some
@@ -1589,7 +1589,7 @@ only be referenced; assignment to them is not allowed.
?
($?) Expands to the exit status of the most recently executed
foreground pipeline.
foreground command.
-
($-, a hyphen.) Expands to the current option flags as specified
@@ -3780,12 +3780,13 @@ standard.
Aliases::.
bind
bind [-m KEYMAP] [-lpsvPSVX]
bind [-m KEYMAP] [-lsvSVX]
bind [-m KEYMAP] [-q FUNCTION] [-u FUNCTION] [-r KEYSEQ]
bind [-m KEYMAP] -f FILENAME
bind [-m KEYMAP] -x KEYSEQ[: ]SHELL-COMMAND
bind [-m KEYMAP] KEYSEQ:FUNCTION-NAME
bind [-m KEYMAP] KEYSEQ:READLINE-COMMAND
bind [-m KEYMAP] -p|-P [READLINE-COMMAND]
bind READLINE-COMMAND-LINE
Display current Readline (*note Command Line Editing::) key and
@@ -3811,10 +3812,14 @@ standard.
-p
Display Readline function names and bindings in such a way
that they can be used as an argument to a subsequent bind
command or in a Readline initialization file.
command or in a Readline initialization file. If arguments
remain after option processing, bind treats them as readline
command names and restricts output to those names.
-P
List current Readline function names and bindings.
List current Readline function names and bindings. If
arguments remain after option processing, bind treats them
as readline command names and restricts output to those names.
-v
Display Readline variable names and values in such a way that
@@ -5939,7 +5944,8 @@ Variables::).
PIPESTATUS
An array variable (*note Arrays::) containing a list of exit status
values from the processes in the most-recently-executed foreground
pipeline (which may contain only a single command).
pipeline, which may consist of only a simple command (*note Shell
Commands::).
POSIXLY_CORRECT
If this variable is in the environment when Bash starts, the shell
@@ -7778,6 +7784,11 @@ required for bash-5.1 and later versions.
• The test builtin uses its historical algorithm to parse
parenthesized subexpressions when given five or more
arguments.
• If the -p or -P option is supplied to the bind builtin,
bind treats any arguments remaining after option processing
as bindable command names, and displays any key sequences
bound to those commands, instead of treating the arguments as
key sequences to bind.

File: bashref.info, Node: Job Control, Next: Command Line Editing, Prev: Bash Features, Up: Top
@@ -12210,11 +12221,11 @@ D.1 Index of Shell Builtin Commands
* bind: Bash Builtins. (line 21)
* break: Bourne Shell Builtins.
(line 37)
* builtin: Bash Builtins. (line 119)
* caller: Bash Builtins. (line 128)
* builtin: Bash Builtins. (line 124)
* caller: Bash Builtins. (line 133)
* cd: Bourne Shell Builtins.
(line 45)
* command: Bash Builtins. (line 145)
* command: Bash Builtins. (line 150)
* compgen: Programmable Completion Builtins.
(line 12)
* complete: Programmable Completion Builtins.
@@ -12223,13 +12234,13 @@ D.1 Index of Shell Builtin Commands
(line 248)
* continue: Bourne Shell Builtins.
(line 90)
* declare: Bash Builtins. (line 165)
* declare: Bash Builtins. (line 170)
* dirs: Directory Stack Builtins.
(line 7)
* disown: Job Control Builtins.
(line 104)
* echo: Bash Builtins. (line 268)
* enable: Bash Builtins. (line 317)
* echo: Bash Builtins. (line 273)
* enable: Bash Builtins. (line 322)
* eval: Bourne Shell Builtins.
(line 99)
* exec: Bourne Shell Builtins.
@@ -12248,26 +12259,26 @@ D.1 Index of Shell Builtin Commands
(line 153)
* hash: Bourne Shell Builtins.
(line 197)
* help: Bash Builtins. (line 355)
* help: Bash Builtins. (line 360)
* history: Bash History Builtins.
(line 46)
* jobs: Job Control Builtins.
(line 27)
* kill: Job Control Builtins.
(line 58)
* let: Bash Builtins. (line 374)
* local: Bash Builtins. (line 382)
* logout: Bash Builtins. (line 399)
* mapfile: Bash Builtins. (line 404)
* let: Bash Builtins. (line 379)
* local: Bash Builtins. (line 387)
* logout: Bash Builtins. (line 404)
* mapfile: Bash Builtins. (line 409)
* popd: Directory Stack Builtins.
(line 35)
* printf: Bash Builtins. (line 450)
* printf: Bash Builtins. (line 455)
* pushd: Directory Stack Builtins.
(line 69)
* pwd: Bourne Shell Builtins.
(line 222)
* read: Bash Builtins. (line 518)
* readarray: Bash Builtins. (line 624)
* read: Bash Builtins. (line 523)
* readarray: Bash Builtins. (line 629)
* readonly: Bourne Shell Builtins.
(line 232)
* return: Bourne Shell Builtins.
@@ -12276,7 +12287,7 @@ D.1 Index of Shell Builtin Commands
* shift: Bourne Shell Builtins.
(line 272)
* shopt: The Shopt Builtin. (line 9)
* source: Bash Builtins. (line 633)
* source: Bash Builtins. (line 638)
* suspend: Job Control Builtins.
(line 116)
* test: Bourne Shell Builtins.
@@ -12287,12 +12298,12 @@ D.1 Index of Shell Builtin Commands
(line 393)
* true: Bourne Shell Builtins.
(line 455)
* type: Bash Builtins. (line 638)
* typeset: Bash Builtins. (line 676)
* ulimit: Bash Builtins. (line 682)
* type: Bash Builtins. (line 643)
* typeset: Bash Builtins. (line 681)
* ulimit: Bash Builtins. (line 687)
* umask: Bourne Shell Builtins.
(line 460)
* unalias: Bash Builtins. (line 788)
* unalias: Bash Builtins. (line 793)
* unset: Bourne Shell Builtins.
(line 478)
* wait: Job Control Builtins.
@@ -12536,32 +12547,32 @@ D.3 Parameter and Variable Index
* PATH: Bourne Shell Variables.
(line 42)
* PIPESTATUS: Bash Variables. (line 602)
* POSIXLY_CORRECT: Bash Variables. (line 607)
* PPID: Bash Variables. (line 617)
* PROMPT_COMMAND: Bash Variables. (line 621)
* PROMPT_DIRTRIM: Bash Variables. (line 627)
* PS0: Bash Variables. (line 633)
* POSIXLY_CORRECT: Bash Variables. (line 608)
* PPID: Bash Variables. (line 618)
* PROMPT_COMMAND: Bash Variables. (line 622)
* PROMPT_DIRTRIM: Bash Variables. (line 628)
* PS0: Bash Variables. (line 634)
* PS1: Bourne Shell Variables.
(line 48)
* PS2: Bourne Shell Variables.
(line 53)
* PS3: Bash Variables. (line 638)
* PS4: Bash Variables. (line 643)
* PWD: Bash Variables. (line 651)
* RANDOM: Bash Variables. (line 654)
* READLINE_ARGUMENT: Bash Variables. (line 660)
* READLINE_LINE: Bash Variables. (line 664)
* READLINE_MARK: Bash Variables. (line 668)
* READLINE_POINT: Bash Variables. (line 674)
* REPLY: Bash Variables. (line 678)
* PS3: Bash Variables. (line 639)
* PS4: Bash Variables. (line 644)
* PWD: Bash Variables. (line 652)
* RANDOM: Bash Variables. (line 655)
* READLINE_ARGUMENT: Bash Variables. (line 661)
* READLINE_LINE: Bash Variables. (line 665)
* READLINE_MARK: Bash Variables. (line 669)
* READLINE_POINT: Bash Variables. (line 675)
* REPLY: Bash Variables. (line 679)
* revert-all-at-newline: Readline Init File Syntax.
(line 325)
* search-ignore-case: Readline Init File Syntax.
(line 332)
* SECONDS: Bash Variables. (line 681)
* SHELL: Bash Variables. (line 690)
* SHELLOPTS: Bash Variables. (line 695)
* SHLVL: Bash Variables. (line 704)
* SECONDS: Bash Variables. (line 682)
* SHELL: Bash Variables. (line 691)
* SHELLOPTS: Bash Variables. (line 696)
* SHLVL: Bash Variables. (line 705)
* show-all-if-ambiguous: Readline Init File Syntax.
(line 337)
* show-all-if-unmodified: Readline Init File Syntax.
@@ -12570,15 +12581,15 @@ D.3 Parameter and Variable Index
(line 352)
* skip-completed-text: Readline Init File Syntax.
(line 358)
* SRANDOM: Bash Variables. (line 709)
* SRANDOM: Bash Variables. (line 710)
* TEXTDOMAIN: Creating Internationalized Scripts.
(line 51)
* TEXTDOMAINDIR: Creating Internationalized Scripts.
(line 51)
* TIMEFORMAT: Bash Variables. (line 718)
* TMOUT: Bash Variables. (line 756)
* TMPDIR: Bash Variables. (line 768)
* UID: Bash Variables. (line 772)
* TIMEFORMAT: Bash Variables. (line 719)
* TMOUT: Bash Variables. (line 757)
* TMPDIR: Bash Variables. (line 769)
* UID: Bash Variables. (line 773)
* vi-cmd-mode-string: Readline Init File Syntax.
(line 371)
* vi-ins-mode-string: Readline Init File Syntax.
@@ -12970,138 +12981,138 @@ D.5 Concept Index

Tag Table:
Node: Top896
Node: Introduction2832
Node: What is Bash?3048
Node: What is a shell?4192
Node: Definitions6774
Node: Basic Shell Features9953
Node: Shell Syntax11176
Node: Shell Operation12206
Node: Quoting13507
Node: Escape Character14823
Node: Single Quotes15324
Node: Double Quotes15676
Node: ANSI-C Quoting17022
Node: Locale Translation18410
Node: Creating Internationalized Scripts19757
Node: Comments23958
Node: Shell Commands24596
Node: Reserved Words25538
Node: Simple Commands26406
Node: Pipelines27068
Node: Lists30134
Node: Compound Commands32009
Node: Looping Constructs33021
Node: Conditional Constructs35568
Node: Command Grouping50475
Node: Coprocesses51965
Node: GNU Parallel54664
Node: Shell Functions55585
Node: Shell Parameters63694
Node: Positional Parameters68230
Node: Special Parameters69168
Node: Shell Expansions72478
Node: Brace Expansion74670
Node: Tilde Expansion77336
Node: Shell Parameter Expansion80105
Node: Command Substitution99215
Node: Arithmetic Expansion102751
Node: Process Substitution103719
Node: Word Splitting104859
Node: Filename Expansion107003
Node: Pattern Matching110102
Node: Quote Removal115338
Node: Redirections115645
Node: Executing Commands125457
Node: Simple Command Expansion126127
Node: Command Search and Execution128241
Node: Command Execution Environment130652
Node: Environment133964
Node: Exit Status135671
Node: Signals137459
Node: Shell Scripts141076
Node: Shell Builtin Commands144171
Node: Bourne Shell Builtins146285
Node: Bash Builtins170692
Node: Modifying Shell Behavior205300
Node: The Set Builtin205645
Node: The Shopt Builtin217163
Node: Special Builtins233902
Node: Shell Variables234894
Node: Bourne Shell Variables235331
Node: Bash Variables237527
Node: Bash Features274080
Node: Invoking Bash275097
Node: Bash Startup Files281499
Node: Interactive Shells286814
Node: What is an Interactive Shell?287225
Node: Is this Shell Interactive?287894
Node: Interactive Shell Behavior288721
Node: Bash Conditional Expressions292478
Node: Shell Arithmetic297655
Node: Aliases300740
Node: Arrays303698
Node: The Directory Stack310500
Node: Directory Stack Builtins311300
Node: Controlling the Prompt315752
Node: The Restricted Shell318893
Node: Bash POSIX Mode321683
Node: Shell Compatibility Mode339197
Node: Job Control347884
Node: Job Control Basics348344
Node: Job Control Builtins353521
Node: Job Control Variables359484
Node: Command Line Editing360664
Node: Introduction and Notation362371
Node: Readline Interaction364018
Node: Readline Bare Essentials365209
Node: Readline Movement Commands367030
Node: Readline Killing Commands368030
Node: Readline Arguments370011
Node: Searching371071
Node: Readline Init File373303
Node: Readline Init File Syntax374588
Node: Conditional Init Constructs399529
Node: Sample Init File403897
Node: Bindable Readline Commands407021
Node: Commands For Moving408249
Node: Commands For History410352
Node: Commands For Text415438
Node: Commands For Killing419516
Node: Numeric Arguments422320
Node: Commands For Completion423475
Node: Keyboard Macros427794
Node: Miscellaneous Commands428498
Node: Readline vi Mode435155
Node: Programmable Completion436110
Node: Programmable Completion Builtins444070
Node: A Programmable Completion Example455639
Node: Using History Interactively460987
Node: Bash History Facilities461671
Node: Bash History Builtins464786
Node: History Interaction470032
Node: Event Designators474360
Node: Word Designators475946
Node: Modifiers477935
Node: Installing Bash479847
Node: Basic Installation480984
Node: Compilers and Options484866
Node: Compiling For Multiple Architectures485619
Node: Installation Names487371
Node: Specifying the System Type489608
Node: Sharing Defaults490357
Node: Operation Controls491074
Node: Optional Features492096
Node: Reporting Bugs503901
Node: Major Differences From The Bourne Shell505253
Node: GNU Free Documentation License524991
Node: Indexes550171
Node: Builtin Index550625
Node: Reserved Word Index557726
Node: Variable Index560174
Node: Function Index577308
Node: Concept Index591167
Node: Top898
Node: Introduction2836
Node: What is Bash?3052
Node: What is a shell?4196
Node: Definitions6778
Node: Basic Shell Features9957
Node: Shell Syntax11180
Node: Shell Operation12210
Node: Quoting13511
Node: Escape Character14827
Node: Single Quotes15328
Node: Double Quotes15680
Node: ANSI-C Quoting17026
Node: Locale Translation18414
Node: Creating Internationalized Scripts19761
Node: Comments23962
Node: Shell Commands24600
Node: Reserved Words25542
Node: Simple Commands26410
Node: Pipelines27072
Node: Lists30138
Node: Compound Commands32013
Node: Looping Constructs33025
Node: Conditional Constructs35572
Node: Command Grouping50479
Node: Coprocesses51969
Node: GNU Parallel54668
Node: Shell Functions55589
Node: Shell Parameters63698
Node: Positional Parameters68234
Node: Special Parameters69172
Node: Shell Expansions72481
Node: Brace Expansion74673
Node: Tilde Expansion77339
Node: Shell Parameter Expansion80108
Node: Command Substitution99218
Node: Arithmetic Expansion102754
Node: Process Substitution103722
Node: Word Splitting104862
Node: Filename Expansion107006
Node: Pattern Matching110105
Node: Quote Removal115341
Node: Redirections115648
Node: Executing Commands125460
Node: Simple Command Expansion126130
Node: Command Search and Execution128244
Node: Command Execution Environment130655
Node: Environment133967
Node: Exit Status135674
Node: Signals137462
Node: Shell Scripts141079
Node: Shell Builtin Commands144174
Node: Bourne Shell Builtins146288
Node: Bash Builtins170695
Node: Modifying Shell Behavior205657
Node: The Set Builtin206002
Node: The Shopt Builtin217520
Node: Special Builtins234259
Node: Shell Variables235251
Node: Bourne Shell Variables235688
Node: Bash Variables237884
Node: Bash Features274469
Node: Invoking Bash275486
Node: Bash Startup Files281888
Node: Interactive Shells287203
Node: What is an Interactive Shell?287614
Node: Is this Shell Interactive?288283
Node: Interactive Shell Behavior289110
Node: Bash Conditional Expressions292867
Node: Shell Arithmetic298044
Node: Aliases301129
Node: Arrays304087
Node: The Directory Stack310889
Node: Directory Stack Builtins311689
Node: Controlling the Prompt316141
Node: The Restricted Shell319282
Node: Bash POSIX Mode322072
Node: Shell Compatibility Mode339586
Node: Job Control348608
Node: Job Control Basics349068
Node: Job Control Builtins354245
Node: Job Control Variables360208
Node: Command Line Editing361388
Node: Introduction and Notation363095
Node: Readline Interaction364742
Node: Readline Bare Essentials365933
Node: Readline Movement Commands367754
Node: Readline Killing Commands368754
Node: Readline Arguments370735
Node: Searching371795
Node: Readline Init File374027
Node: Readline Init File Syntax375312
Node: Conditional Init Constructs400253
Node: Sample Init File404621
Node: Bindable Readline Commands407745
Node: Commands For Moving408973
Node: Commands For History411076
Node: Commands For Text416162
Node: Commands For Killing420240
Node: Numeric Arguments423044
Node: Commands For Completion424199
Node: Keyboard Macros428518
Node: Miscellaneous Commands429222
Node: Readline vi Mode435879
Node: Programmable Completion436834
Node: Programmable Completion Builtins444794
Node: A Programmable Completion Example456363
Node: Using History Interactively461711
Node: Bash History Facilities462395
Node: Bash History Builtins465510
Node: History Interaction470756
Node: Event Designators475084
Node: Word Designators476670
Node: Modifiers478659
Node: Installing Bash480571
Node: Basic Installation481708
Node: Compilers and Options485590
Node: Compiling For Multiple Architectures486343
Node: Installation Names488095
Node: Specifying the System Type490332
Node: Sharing Defaults491081
Node: Operation Controls491798
Node: Optional Features492820
Node: Reporting Bugs504625
Node: Major Differences From The Bourne Shell505977
Node: GNU Free Documentation License525715
Node: Indexes550895
Node: Builtin Index551349
Node: Reserved Word Index558450
Node: Variable Index560898
Node: Function Index578032
Node: Concept Index591891

End Tag Table