mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-02 01:40:49 +02:00
portability and compatibility fixes
This commit is contained in:
+158
-140
@@ -2,9 +2,9 @@ This is bashref.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.
|
||||
@@ -27,10 +27,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
|
||||
@@ -7350,10 +7350,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: bashref.info, Node: Job Control, Next: Command Line Editing, Prev: Bash Features, Up: Top
|
||||
@@ -12397,138 +12415,138 @@ D.5 Concept Index
|
||||
|
||||
|
||||
Tag Table:
|
||||
Node: Top897
|
||||
Node: Introduction2817
|
||||
Node: What is Bash?3033
|
||||
Node: What is a shell?4147
|
||||
Node: Definitions6685
|
||||
Node: Basic Shell Features9636
|
||||
Node: Shell Syntax10855
|
||||
Node: Shell Operation11881
|
||||
Node: Quoting13174
|
||||
Node: Escape Character14478
|
||||
Node: Single Quotes14963
|
||||
Node: Double Quotes15311
|
||||
Node: ANSI-C Quoting16589
|
||||
Node: Locale Translation17899
|
||||
Node: Creating Internationalized Scripts19210
|
||||
Node: Comments23327
|
||||
Node: Shell Commands23945
|
||||
Node: Reserved Words24883
|
||||
Node: Simple Commands25639
|
||||
Node: Pipelines26293
|
||||
Node: Lists29252
|
||||
Node: Compound Commands31047
|
||||
Node: Looping Constructs32059
|
||||
Node: Conditional Constructs34554
|
||||
Node: Command Grouping48898
|
||||
Node: Coprocesses50376
|
||||
Node: GNU Parallel53039
|
||||
Node: Shell Functions53956
|
||||
Node: Shell Parameters61247
|
||||
Node: Positional Parameters65635
|
||||
Node: Special Parameters66537
|
||||
Node: Shell Expansions69751
|
||||
Node: Brace Expansion71878
|
||||
Node: Tilde Expansion74612
|
||||
Node: Shell Parameter Expansion77233
|
||||
Node: Command Substitution95099
|
||||
Node: Arithmetic Expansion96454
|
||||
Node: Process Substitution97422
|
||||
Node: Word Splitting98542
|
||||
Node: Filename Expansion100486
|
||||
Node: Pattern Matching103086
|
||||
Node: Quote Removal107694
|
||||
Node: Redirections107989
|
||||
Node: Executing Commands117649
|
||||
Node: Simple Command Expansion118319
|
||||
Node: Command Search and Execution120429
|
||||
Node: Command Execution Environment122807
|
||||
Node: Environment125842
|
||||
Node: Exit Status127505
|
||||
Node: Signals129289
|
||||
Node: Shell Scripts132738
|
||||
Node: Shell Builtin Commands135765
|
||||
Node: Bourne Shell Builtins137803
|
||||
Node: Bash Builtins159264
|
||||
Node: Modifying Shell Behavior190120
|
||||
Node: The Set Builtin190465
|
||||
Node: The Shopt Builtin201007
|
||||
Node: Special Builtins216721
|
||||
Node: Shell Variables217700
|
||||
Node: Bourne Shell Variables218137
|
||||
Node: Bash Variables220241
|
||||
Node: Bash Features253056
|
||||
Node: Invoking Bash254069
|
||||
Node: Bash Startup Files260082
|
||||
Node: Interactive Shells265185
|
||||
Node: What is an Interactive Shell?265595
|
||||
Node: Is this Shell Interactive?266244
|
||||
Node: Interactive Shell Behavior267059
|
||||
Node: Bash Conditional Expressions270688
|
||||
Node: Shell Arithmetic275330
|
||||
Node: Aliases278274
|
||||
Node: Arrays280887
|
||||
Node: The Directory Stack287134
|
||||
Node: Directory Stack Builtins287918
|
||||
Node: Controlling the Prompt292178
|
||||
Node: The Restricted Shell295143
|
||||
Node: Bash POSIX Mode297753
|
||||
Node: Shell Compatibility Mode309026
|
||||
Node: Job Control315945
|
||||
Node: Job Control Basics316405
|
||||
Node: Job Control Builtins321407
|
||||
Node: Job Control Variables326807
|
||||
Node: Command Line Editing327963
|
||||
Node: Introduction and Notation329634
|
||||
Node: Readline Interaction331257
|
||||
Node: Readline Bare Essentials332448
|
||||
Node: Readline Movement Commands334231
|
||||
Node: Readline Killing Commands335191
|
||||
Node: Readline Arguments337109
|
||||
Node: Searching338153
|
||||
Node: Readline Init File340339
|
||||
Node: Readline Init File Syntax341600
|
||||
Node: Conditional Init Constructs363088
|
||||
Node: Sample Init File367284
|
||||
Node: Bindable Readline Commands370408
|
||||
Node: Commands For Moving371612
|
||||
Node: Commands For History373663
|
||||
Node: Commands For Text378657
|
||||
Node: Commands For Killing382306
|
||||
Node: Numeric Arguments385339
|
||||
Node: Commands For Completion386478
|
||||
Node: Keyboard Macros390669
|
||||
Node: Miscellaneous Commands391356
|
||||
Node: Readline vi Mode397295
|
||||
Node: Programmable Completion398202
|
||||
Node: Programmable Completion Builtins405982
|
||||
Node: A Programmable Completion Example416677
|
||||
Node: Using History Interactively421924
|
||||
Node: Bash History Facilities422608
|
||||
Node: Bash History Builtins425613
|
||||
Node: History Interaction430621
|
||||
Node: Event Designators434241
|
||||
Node: Word Designators435595
|
||||
Node: Modifiers437355
|
||||
Node: Installing Bash439166
|
||||
Node: Basic Installation440303
|
||||
Node: Compilers and Options444025
|
||||
Node: Compiling For Multiple Architectures444766
|
||||
Node: Installation Names446459
|
||||
Node: Specifying the System Type448568
|
||||
Node: Sharing Defaults449284
|
||||
Node: Operation Controls449957
|
||||
Node: Optional Features450915
|
||||
Node: Reporting Bugs462133
|
||||
Node: Major Differences From The Bourne Shell463408
|
||||
Node: GNU Free Documentation License480258
|
||||
Node: Indexes505435
|
||||
Node: Builtin Index505889
|
||||
Node: Reserved Word Index512716
|
||||
Node: Variable Index515164
|
||||
Node: Function Index531656
|
||||
Node: Concept Index545440
|
||||
Node: Top895
|
||||
Node: Introduction2813
|
||||
Node: What is Bash?3029
|
||||
Node: What is a shell?4143
|
||||
Node: Definitions6681
|
||||
Node: Basic Shell Features9632
|
||||
Node: Shell Syntax10851
|
||||
Node: Shell Operation11877
|
||||
Node: Quoting13170
|
||||
Node: Escape Character14474
|
||||
Node: Single Quotes14959
|
||||
Node: Double Quotes15307
|
||||
Node: ANSI-C Quoting16585
|
||||
Node: Locale Translation17895
|
||||
Node: Creating Internationalized Scripts19206
|
||||
Node: Comments23323
|
||||
Node: Shell Commands23941
|
||||
Node: Reserved Words24879
|
||||
Node: Simple Commands25635
|
||||
Node: Pipelines26289
|
||||
Node: Lists29248
|
||||
Node: Compound Commands31043
|
||||
Node: Looping Constructs32055
|
||||
Node: Conditional Constructs34550
|
||||
Node: Command Grouping48894
|
||||
Node: Coprocesses50372
|
||||
Node: GNU Parallel53035
|
||||
Node: Shell Functions53952
|
||||
Node: Shell Parameters61243
|
||||
Node: Positional Parameters65631
|
||||
Node: Special Parameters66533
|
||||
Node: Shell Expansions69747
|
||||
Node: Brace Expansion71874
|
||||
Node: Tilde Expansion74608
|
||||
Node: Shell Parameter Expansion77229
|
||||
Node: Command Substitution95095
|
||||
Node: Arithmetic Expansion96450
|
||||
Node: Process Substitution97418
|
||||
Node: Word Splitting98538
|
||||
Node: Filename Expansion100482
|
||||
Node: Pattern Matching103082
|
||||
Node: Quote Removal107690
|
||||
Node: Redirections107985
|
||||
Node: Executing Commands117645
|
||||
Node: Simple Command Expansion118315
|
||||
Node: Command Search and Execution120425
|
||||
Node: Command Execution Environment122803
|
||||
Node: Environment125838
|
||||
Node: Exit Status127501
|
||||
Node: Signals129285
|
||||
Node: Shell Scripts132734
|
||||
Node: Shell Builtin Commands135761
|
||||
Node: Bourne Shell Builtins137799
|
||||
Node: Bash Builtins159260
|
||||
Node: Modifying Shell Behavior190116
|
||||
Node: The Set Builtin190461
|
||||
Node: The Shopt Builtin201003
|
||||
Node: Special Builtins216717
|
||||
Node: Shell Variables217696
|
||||
Node: Bourne Shell Variables218133
|
||||
Node: Bash Variables220237
|
||||
Node: Bash Features253052
|
||||
Node: Invoking Bash254065
|
||||
Node: Bash Startup Files260078
|
||||
Node: Interactive Shells265181
|
||||
Node: What is an Interactive Shell?265591
|
||||
Node: Is this Shell Interactive?266240
|
||||
Node: Interactive Shell Behavior267055
|
||||
Node: Bash Conditional Expressions270684
|
||||
Node: Shell Arithmetic275326
|
||||
Node: Aliases278270
|
||||
Node: Arrays280883
|
||||
Node: The Directory Stack287130
|
||||
Node: Directory Stack Builtins287914
|
||||
Node: Controlling the Prompt292174
|
||||
Node: The Restricted Shell295139
|
||||
Node: Bash POSIX Mode297749
|
||||
Node: Shell Compatibility Mode309022
|
||||
Node: Job Control317051
|
||||
Node: Job Control Basics317511
|
||||
Node: Job Control Builtins322513
|
||||
Node: Job Control Variables327913
|
||||
Node: Command Line Editing329069
|
||||
Node: Introduction and Notation330740
|
||||
Node: Readline Interaction332363
|
||||
Node: Readline Bare Essentials333554
|
||||
Node: Readline Movement Commands335337
|
||||
Node: Readline Killing Commands336297
|
||||
Node: Readline Arguments338215
|
||||
Node: Searching339259
|
||||
Node: Readline Init File341445
|
||||
Node: Readline Init File Syntax342706
|
||||
Node: Conditional Init Constructs364194
|
||||
Node: Sample Init File368390
|
||||
Node: Bindable Readline Commands371514
|
||||
Node: Commands For Moving372718
|
||||
Node: Commands For History374769
|
||||
Node: Commands For Text379763
|
||||
Node: Commands For Killing383412
|
||||
Node: Numeric Arguments386445
|
||||
Node: Commands For Completion387584
|
||||
Node: Keyboard Macros391775
|
||||
Node: Miscellaneous Commands392462
|
||||
Node: Readline vi Mode398401
|
||||
Node: Programmable Completion399308
|
||||
Node: Programmable Completion Builtins407088
|
||||
Node: A Programmable Completion Example417783
|
||||
Node: Using History Interactively423030
|
||||
Node: Bash History Facilities423714
|
||||
Node: Bash History Builtins426719
|
||||
Node: History Interaction431727
|
||||
Node: Event Designators435347
|
||||
Node: Word Designators436701
|
||||
Node: Modifiers438461
|
||||
Node: Installing Bash440272
|
||||
Node: Basic Installation441409
|
||||
Node: Compilers and Options445131
|
||||
Node: Compiling For Multiple Architectures445872
|
||||
Node: Installation Names447565
|
||||
Node: Specifying the System Type449674
|
||||
Node: Sharing Defaults450390
|
||||
Node: Operation Controls451063
|
||||
Node: Optional Features452021
|
||||
Node: Reporting Bugs463239
|
||||
Node: Major Differences From The Bourne Shell464514
|
||||
Node: GNU Free Documentation License481364
|
||||
Node: Indexes506541
|
||||
Node: Builtin Index506995
|
||||
Node: Reserved Word Index513822
|
||||
Node: Variable Index516270
|
||||
Node: Function Index532762
|
||||
Node: Concept Index546546
|
||||
|
||||
End Tag Table
|
||||
|
||||
|
||||
Reference in New Issue
Block a user