portability and compatibility fixes

This commit is contained in:
Chet Ramey
2021-12-06 09:17:41 -05:00
parent 006856edf6
commit 71a11dbeb4
15 changed files with 513 additions and 313 deletions
+162 -140
View File
@@ -1,9 +1,9 @@
This is bash.info, produced by makeinfo version 6.8 from bashref.texi.
This text is a brief description of the features that are present in the
Bash shell (version 5.2, 22 November 2021).
Bash shell (version 5.2, 2 December 2021).
This is Edition 5.2, last updated 22 November 2021, of 'The GNU Bash
This is Edition 5.2, last updated 2 December 2021, of 'The GNU Bash
Reference Manual', for 'Bash', Version 5.2.
Copyright (C) 1988-2021 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.2, 22 November 2021). The Bash home page is
Bash shell (version 5.2, 2 December 2021). The Bash home page is
<http://www.gnu.org/software/bash/>.
This is Edition 5.2, last updated 22 November 2021, of 'The GNU Bash
This is Edition 5.2, last updated 2 December 2021, of 'The GNU Bash
Reference Manual', for 'Bash', Version 5.2.
Bash contains features that appear in other popular shells, and some
@@ -7349,10 +7349,28 @@ required for bash-5.1 and later versions.
suppresses that message when the '-l' option is supplied.
'compat51 (set using BASH_COMPAT)'
* The 'unset' builtin treats attempts to unset array subscripts
'@' and '*' differently depending on whether the array is
indexed or associative, and differently than in previous
versions.
* The 'unset' builtin will unset the array 'a' given an argument
like 'a[@]'. Bash-5.2 will unset an element with key '@'
(associative arrays) or remove all the elements without
unsetting the array (indexed arrays)
* arithmetic commands ( ((...)) ) and the expressions in an
arithmetic for statement can be expanded more than once
* expressions used as arguments to arithmetic operators in the
'[[' conditional command can be expanded more than once
* the expressions in substring parameter brace expansion can be
expanded more than once
* the expressions in the $(( ... )) word expansion can be
expanded more than once
* arithmetic expressions used as indexed array subscripts can be
expanded more than once
* 'test -v', when given an argument of 'A[@]', where A is an
existing associative array, will return true if the array has
any set elements. Bash-5.2 will look for and report on a key
named '@'
* the ${PARAMETER[:]=VALUE} word expansion will return VALUE,
before any variable-specific transformations have been
performed (e.g., converting to lowercase). Bash-5.2 will
return the final value assigned to the variable.

File: bash.info, Node: Job Control, Next: Command Line Editing, Prev: Bash Features, Up: Top
@@ -10719,6 +10737,10 @@ does not provide the necessary support.
'--enable-strict-posix-default'
Make Bash POSIX-conformant by default (*note Bash POSIX Mode::).
'--enable-translatable-strings'
Enable support for '$"STRING"' translatable strings (*note Locale
Translation::).
'--enable-usg-echo-default'
A synonym for '--enable-xpg-echo-default'.
@@ -12392,138 +12414,138 @@ D.5 Concept Index

Tag Table:
Node: Top894
Node: Introduction2811
Node: What is Bash?3024
Node: What is a shell?4135
Node: Definitions6670
Node: Basic Shell Features9618
Node: Shell Syntax10834
Node: Shell Operation11857
Node: Quoting13147
Node: Escape Character14448
Node: Single Quotes14930
Node: Double Quotes15275
Node: ANSI-C Quoting16550
Node: Locale Translation17857
Node: Creating Internationalized Scripts19165
Node: Comments23279
Node: Shell Commands23894
Node: Reserved Words24829
Node: Simple Commands25582
Node: Pipelines26233
Node: Lists29189
Node: Compound Commands30981
Node: Looping Constructs31990
Node: Conditional Constructs34482
Node: Command Grouping48823
Node: Coprocesses50298
Node: GNU Parallel52958
Node: Shell Functions53872
Node: Shell Parameters61160
Node: Positional Parameters65545
Node: Special Parameters66444
Node: Shell Expansions69655
Node: Brace Expansion71779
Node: Tilde Expansion74510
Node: Shell Parameter Expansion77128
Node: Command Substitution94991
Node: Arithmetic Expansion96343
Node: Process Substitution97308
Node: Word Splitting98425
Node: Filename Expansion100366
Node: Pattern Matching102963
Node: Quote Removal107568
Node: Redirections107860
Node: Executing Commands117517
Node: Simple Command Expansion118184
Node: Command Search and Execution120291
Node: Command Execution Environment122666
Node: Environment125698
Node: Exit Status127358
Node: Signals129139
Node: Shell Scripts132585
Node: Shell Builtin Commands135609
Node: Bourne Shell Builtins137644
Node: Bash Builtins159102
Node: Modifying Shell Behavior189955
Node: The Set Builtin190297
Node: The Shopt Builtin200836
Node: Special Builtins216547
Node: Shell Variables217523
Node: Bourne Shell Variables217957
Node: Bash Variables220058
Node: Bash Features252870
Node: Invoking Bash253880
Node: Bash Startup Files259890
Node: Interactive Shells264990
Node: What is an Interactive Shell?265397
Node: Is this Shell Interactive?266043
Node: Interactive Shell Behavior266855
Node: Bash Conditional Expressions270481
Node: Shell Arithmetic275120
Node: Aliases278061
Node: Arrays280671
Node: The Directory Stack286915
Node: Directory Stack Builtins287696
Node: Controlling the Prompt291953
Node: The Restricted Shell294915
Node: Bash POSIX Mode297522
Node: Shell Compatibility Mode308792
Node: Job Control315708
Node: Job Control Basics316165
Node: Job Control Builtins321164
Node: Job Control Variables326561
Node: Command Line Editing327714
Node: Introduction and Notation329382
Node: Readline Interaction331002
Node: Readline Bare Essentials332190
Node: Readline Movement Commands333970
Node: Readline Killing Commands334927
Node: Readline Arguments336842
Node: Searching337883
Node: Readline Init File340066
Node: Readline Init File Syntax341324
Node: Conditional Init Constructs362809
Node: Sample Init File367002
Node: Bindable Readline Commands370123
Node: Commands For Moving371324
Node: Commands For History373372
Node: Commands For Text378363
Node: Commands For Killing382009
Node: Numeric Arguments385039
Node: Commands For Completion386175
Node: Keyboard Macros390363
Node: Miscellaneous Commands391047
Node: Readline vi Mode396983
Node: Programmable Completion397887
Node: Programmable Completion Builtins405664
Node: A Programmable Completion Example416356
Node: Using History Interactively421600
Node: Bash History Facilities422281
Node: Bash History Builtins425283
Node: History Interaction430288
Node: Event Designators433905
Node: Word Designators435256
Node: Modifiers437013
Node: Installing Bash438821
Node: Basic Installation439955
Node: Compilers and Options443674
Node: Compiling For Multiple Architectures444412
Node: Installation Names446102
Node: Specifying the System Type448208
Node: Sharing Defaults448921
Node: Operation Controls449591
Node: Optional Features450546
Node: Reporting Bugs461636
Node: Major Differences From The Bourne Shell462908
Node: GNU Free Documentation License479755
Node: Indexes504929
Node: Builtin Index505380
Node: Reserved Word Index512204
Node: Variable Index514649
Node: Function Index531138
Node: Concept Index544919
Node: Top892
Node: Introduction2807
Node: What is Bash?3020
Node: What is a shell?4131
Node: Definitions6666
Node: Basic Shell Features9614
Node: Shell Syntax10830
Node: Shell Operation11853
Node: Quoting13143
Node: Escape Character14444
Node: Single Quotes14926
Node: Double Quotes15271
Node: ANSI-C Quoting16546
Node: Locale Translation17853
Node: Creating Internationalized Scripts19161
Node: Comments23275
Node: Shell Commands23890
Node: Reserved Words24825
Node: Simple Commands25578
Node: Pipelines26229
Node: Lists29185
Node: Compound Commands30977
Node: Looping Constructs31986
Node: Conditional Constructs34478
Node: Command Grouping48819
Node: Coprocesses50294
Node: GNU Parallel52954
Node: Shell Functions53868
Node: Shell Parameters61156
Node: Positional Parameters65541
Node: Special Parameters66440
Node: Shell Expansions69651
Node: Brace Expansion71775
Node: Tilde Expansion74506
Node: Shell Parameter Expansion77124
Node: Command Substitution94987
Node: Arithmetic Expansion96339
Node: Process Substitution97304
Node: Word Splitting98421
Node: Filename Expansion100362
Node: Pattern Matching102959
Node: Quote Removal107564
Node: Redirections107856
Node: Executing Commands117513
Node: Simple Command Expansion118180
Node: Command Search and Execution120287
Node: Command Execution Environment122662
Node: Environment125694
Node: Exit Status127354
Node: Signals129135
Node: Shell Scripts132581
Node: Shell Builtin Commands135605
Node: Bourne Shell Builtins137640
Node: Bash Builtins159098
Node: Modifying Shell Behavior189951
Node: The Set Builtin190293
Node: The Shopt Builtin200832
Node: Special Builtins216543
Node: Shell Variables217519
Node: Bourne Shell Variables217953
Node: Bash Variables220054
Node: Bash Features252866
Node: Invoking Bash253876
Node: Bash Startup Files259886
Node: Interactive Shells264986
Node: What is an Interactive Shell?265393
Node: Is this Shell Interactive?266039
Node: Interactive Shell Behavior266851
Node: Bash Conditional Expressions270477
Node: Shell Arithmetic275116
Node: Aliases278057
Node: Arrays280667
Node: The Directory Stack286911
Node: Directory Stack Builtins287692
Node: Controlling the Prompt291949
Node: The Restricted Shell294911
Node: Bash POSIX Mode297518
Node: Shell Compatibility Mode308788
Node: Job Control316814
Node: Job Control Basics317271
Node: Job Control Builtins322270
Node: Job Control Variables327667
Node: Command Line Editing328820
Node: Introduction and Notation330488
Node: Readline Interaction332108
Node: Readline Bare Essentials333296
Node: Readline Movement Commands335076
Node: Readline Killing Commands336033
Node: Readline Arguments337948
Node: Searching338989
Node: Readline Init File341172
Node: Readline Init File Syntax342430
Node: Conditional Init Constructs363915
Node: Sample Init File368108
Node: Bindable Readline Commands371229
Node: Commands For Moving372430
Node: Commands For History374478
Node: Commands For Text379469
Node: Commands For Killing383115
Node: Numeric Arguments386145
Node: Commands For Completion387281
Node: Keyboard Macros391469
Node: Miscellaneous Commands392153
Node: Readline vi Mode398089
Node: Programmable Completion398993
Node: Programmable Completion Builtins406770
Node: A Programmable Completion Example417462
Node: Using History Interactively422706
Node: Bash History Facilities423387
Node: Bash History Builtins426389
Node: History Interaction431394
Node: Event Designators435011
Node: Word Designators436362
Node: Modifiers438119
Node: Installing Bash439927
Node: Basic Installation441061
Node: Compilers and Options444780
Node: Compiling For Multiple Architectures445518
Node: Installation Names447208
Node: Specifying the System Type449314
Node: Sharing Defaults450027
Node: Operation Controls450697
Node: Optional Features451652
Node: Reporting Bugs462867
Node: Major Differences From The Bourne Shell464139
Node: GNU Free Documentation License480986
Node: Indexes506160
Node: Builtin Index506611
Node: Reserved Word Index513435
Node: Variable Index515880
Node: Function Index532369
Node: Concept Index546150

End Tag Table