commit bash-20180316 snapshot

This commit is contained in:
Chet Ramey
2018-03-19 09:46:55 -04:00
parent bf5b8103d4
commit f602026a0c
59 changed files with 6880 additions and 6405 deletions
+172 -165
View File
@@ -2,10 +2,10 @@ This is bashref.info, produced by makeinfo version 6.5 from
bashref.texi.
This text is a brief description of the features that are present in the
Bash shell (version 4.4, 2 March 2018).
Bash shell (version 5.0, 15 March 2018).
This is Edition 4.4, last updated 2 March 2018, of 'The GNU Bash
Reference Manual', for 'Bash', Version 4.4.
This is Edition 5.0, last updated 15 March 2018, of 'The GNU Bash
Reference Manual', for 'Bash', Version 5.0.
Copyright (C) 1988-2018 Free Software Foundation, Inc.
@@ -27,11 +27,11 @@ Bash Features
*************
This text is a brief description of the features that are present in the
Bash shell (version 4.4, 2 March 2018). The Bash home page is
Bash shell (version 5.0, 15 March 2018). The Bash home page is
<http://www.gnu.org/software/bash/>.
This is Edition 4.4, last updated 2 March 2018, of 'The GNU Bash
Reference Manual', for 'Bash', Version 4.4.
This is Edition 5.0, last updated 15 March 2018, of 'The GNU Bash
Reference Manual', for 'Bash', Version 5.0.
Bash contains features that appear in other popular shells, and some
features that only appear in Bash. Some of the shells that Bash has
@@ -1859,22 +1859,23 @@ omitted, the operator tests only for existence.
'${PARAMETER#WORD}'
'${PARAMETER##WORD}'
The WORD is expanded to produce a pattern just as in filename
expansion (*note Filename Expansion::). If the pattern matches the
beginning of the expanded value of PARAMETER, then the result of
the expansion is the expanded value of PARAMETER with the shortest
matching pattern (the '#' case) or the longest matching pattern
(the '##' case) deleted. If PARAMETER is '@' or '*', the pattern
removal operation is applied to each positional parameter in turn,
and the expansion is the resultant list. If PARAMETER is an array
variable subscripted with '@' or '*', the pattern removal operation
is applied to each member of the array in turn, and the expansion
is the resultant list.
The WORD is expanded to produce a pattern and matched according to
the rules described below (*note Pattern Matching::). If the
pattern matches the beginning of the expanded value of PARAMETER,
then the result of the expansion is the expanded value of PARAMETER
with the shortest matching pattern (the '#' case) or the longest
matching pattern (the '##' case) deleted. If PARAMETER is '@' or
'*', the pattern removal operation is applied to each positional
parameter in turn, and the expansion is the resultant list. If
PARAMETER is an array variable subscripted with '@' or '*', the
pattern removal operation is applied to each member of the array in
turn, and the expansion is the resultant list.
'${PARAMETER%WORD}'
'${PARAMETER%%WORD}'
The WORD is expanded to produce a pattern just as in filename
expansion. If the pattern matches a trailing portion of the
The WORD is expanded to produce a pattern and matched according to
the rules described below (*note Pattern Matching::). If the
pattern matches If the pattern matches a trailing portion of the
expanded value of PARAMETER, then the result of the expansion is
the value of PARAMETER with the shortest matching pattern (the '%'
case) or the longest matching pattern (the '%%' case) deleted. If
@@ -1888,21 +1889,23 @@ omitted, the operator tests only for existence.
The PATTERN is expanded to produce a pattern just as in filename
expansion. PARAMETER is expanded and the longest match of PATTERN
against its value is replaced with STRING. If PATTERN begins with
'/', all matches of PATTERN are replaced with STRING. Normally
only the first match is replaced. If PATTERN begins with '#', it
must match at the beginning of the expanded value of PARAMETER. If
PATTERN begins with '%', it must match at the end of the expanded
value of PARAMETER. If STRING is null, matches of PATTERN are
deleted and the '/' following PATTERN may be omitted. If the
'nocasematch' shell option (see the description of 'shopt' in *note
The Shopt Builtin::) is enabled, the match is performed without
regard to the case of alphabetic characters. If PARAMETER is '@'
or '*', the substitution operation is applied to each positional
parameter in turn, and the expansion is the resultant list. If
PARAMETER is an array variable subscripted with '@' or '*', the
substitution operation is applied to each member of the array in
turn, and the expansion is the resultant list.
against its value is replaced with STRING. The match is performed
according to the rules described below (*note Pattern Matching::).
If PATTERN begins with '/', all matches of PATTERN are replaced
with STRING. Normally only the first match is replaced. If
PATTERN begins with '#', it must match at the beginning of the
expanded value of PARAMETER. If PATTERN begins with '%', it must
match at the end of the expanded value of PARAMETER. If STRING is
null, matches of PATTERN are deleted and the '/' following PATTERN
may be omitted. If the 'nocasematch' shell option (see the
description of 'shopt' in *note The Shopt Builtin::) is enabled,
the match is performed without regard to the case of alphabetic
characters. If PARAMETER is '@' or '*', the substitution operation
is applied to each positional parameter in turn, and the expansion
is the resultant list. If PARAMETER is an array variable
subscripted with '@' or '*', the substitution operation is applied
to each member of the array in turn, and the expansion is the
resultant list.
'${PARAMETER^PATTERN}'
'${PARAMETER^^PATTERN}'
@@ -2104,8 +2107,12 @@ performed without regard to the case of alphabetic characters.
the start of a filename or immediately following a slash must be matched
explicitly, unless the shell option 'dotglob' is set. The filenames '.'
and '..' must always be matched explicitly, even if 'dotglob' is set.
When matching a filename, the slash character must always be matched
explicitly. In other cases, the '.' character is not treated specially.
In other cases, the '.' character is not treated specially.
When matching a filename, the slash character must always be matched
explicitly by a slash in the pattern, but in other matching contexts it
can be matched by a special pattern character as described below (*note
Pattern Matching::).
See the description of 'shopt' in *note The Shopt Builtin::, for a
description of the 'nocaseglob', 'nullglob', 'failglob', and 'dotglob'
@@ -11575,134 +11582,134 @@ D.5 Concept Index

Tag Table:
Node: Top889
Node: Introduction2801
Node: What is Bash?3017
Node: What is a shell?4131
Node: Definitions6669
Node: Basic Shell Features9620
Node: Shell Syntax10839
Node: Shell Operation11865
Node: Quoting13158
Node: Escape Character14458
Node: Single Quotes14943
Node: Double Quotes15291
Node: ANSI-C Quoting16569
Node: Locale Translation17828
Node: Comments18724
Node: Shell Commands19342
Node: Simple Commands20214
Node: Pipelines20845
Node: Lists23777
Node: Compound Commands25516
Node: Looping Constructs26528
Node: Conditional Constructs29023
Node: Command Grouping40078
Node: Coprocesses41557
Node: GNU Parallel43460
Node: Shell Functions47434
Node: Shell Parameters54517
Node: Positional Parameters58930
Node: Special Parameters59830
Node: Shell Expansions63167
Node: Brace Expansion65290
Node: Tilde Expansion68014
Node: Shell Parameter Expansion70362
Node: Command Substitution84650
Node: Arithmetic Expansion86005
Node: Process Substitution86937
Node: Word Splitting88057
Node: Filename Expansion90001
Node: Pattern Matching92375
Node: Quote Removal96361
Node: Redirections96656
Node: Executing Commands106214
Node: Simple Command Expansion106884
Node: Command Search and Execution108814
Node: Command Execution Environment111190
Node: Environment114174
Node: Exit Status115833
Node: Signals117503
Node: Shell Scripts119470
Node: Shell Builtin Commands121985
Node: Bourne Shell Builtins124023
Node: Bash Builtins144681
Node: Modifying Shell Behavior173589
Node: The Set Builtin173934
Node: The Shopt Builtin184347
Node: Special Builtins201217
Node: Shell Variables202196
Node: Bourne Shell Variables202633
Node: Bash Variables204737
Node: Bash Features234751
Node: Invoking Bash235650
Node: Bash Startup Files241636
Node: Interactive Shells246739
Node: What is an Interactive Shell?247149
Node: Is this Shell Interactive?247798
Node: Interactive Shell Behavior248613
Node: Bash Conditional Expressions252101
Node: Shell Arithmetic256467
Node: Aliases259284
Node: Arrays261832
Node: The Directory Stack267198
Node: Directory Stack Builtins267982
Node: Controlling the Prompt270950
Node: The Restricted Shell273712
Node: Bash POSIX Mode275537
Node: Job Control285888
Node: Job Control Basics286348
Node: Job Control Builtins291316
Node: Job Control Variables296043
Node: Command Line Editing297199
Node: Introduction and Notation298870
Node: Readline Interaction300493
Node: Readline Bare Essentials301684
Node: Readline Movement Commands303467
Node: Readline Killing Commands304427
Node: Readline Arguments306345
Node: Searching307389
Node: Readline Init File309575
Node: Readline Init File Syntax310722
Node: Conditional Init Constructs331093
Node: Sample Init File335289
Node: Bindable Readline Commands338406
Node: Commands For Moving339610
Node: Commands For History341459
Node: Commands For Text345754
Node: Commands For Killing349143
Node: Numeric Arguments351624
Node: Commands For Completion352763
Node: Keyboard Macros356954
Node: Miscellaneous Commands357641
Node: Readline vi Mode363594
Node: Programmable Completion364501
Node: Programmable Completion Builtins371962
Node: A Programmable Completion Example381848
Node: Using History Interactively387099
Node: Bash History Facilities387783
Node: Bash History Builtins390788
Node: History Interaction395319
Node: Event Designators398386
Node: Word Designators399605
Node: Modifiers401242
Node: Installing Bash402644
Node: Basic Installation403781
Node: Compilers and Options407039
Node: Compiling For Multiple Architectures407780
Node: Installation Names409473
Node: Specifying the System Type410291
Node: Sharing Defaults411007
Node: Operation Controls411680
Node: Optional Features412638
Node: Reporting Bugs423164
Node: Major Differences From The Bourne Shell424358
Node: GNU Free Documentation License441210
Node: Indexes466387
Node: Builtin Index466841
Node: Reserved Word Index473668
Node: Variable Index476116
Node: Function Index491794
Node: Concept Index505097
Node: Top891
Node: Introduction2805
Node: What is Bash?3021
Node: What is a shell?4135
Node: Definitions6673
Node: Basic Shell Features9624
Node: Shell Syntax10843
Node: Shell Operation11869
Node: Quoting13162
Node: Escape Character14462
Node: Single Quotes14947
Node: Double Quotes15295
Node: ANSI-C Quoting16573
Node: Locale Translation17832
Node: Comments18728
Node: Shell Commands19346
Node: Simple Commands20218
Node: Pipelines20849
Node: Lists23781
Node: Compound Commands25520
Node: Looping Constructs26532
Node: Conditional Constructs29027
Node: Command Grouping40082
Node: Coprocesses41561
Node: GNU Parallel43464
Node: Shell Functions47438
Node: Shell Parameters54521
Node: Positional Parameters58934
Node: Special Parameters59834
Node: Shell Expansions63171
Node: Brace Expansion65294
Node: Tilde Expansion68018
Node: Shell Parameter Expansion70366
Node: Command Substitution84849
Node: Arithmetic Expansion86204
Node: Process Substitution87136
Node: Word Splitting88256
Node: Filename Expansion90200
Node: Pattern Matching92730
Node: Quote Removal96716
Node: Redirections97011
Node: Executing Commands106569
Node: Simple Command Expansion107239
Node: Command Search and Execution109169
Node: Command Execution Environment111545
Node: Environment114529
Node: Exit Status116188
Node: Signals117858
Node: Shell Scripts119825
Node: Shell Builtin Commands122340
Node: Bourne Shell Builtins124378
Node: Bash Builtins145036
Node: Modifying Shell Behavior173944
Node: The Set Builtin174289
Node: The Shopt Builtin184702
Node: Special Builtins201572
Node: Shell Variables202551
Node: Bourne Shell Variables202988
Node: Bash Variables205092
Node: Bash Features235106
Node: Invoking Bash236005
Node: Bash Startup Files241991
Node: Interactive Shells247094
Node: What is an Interactive Shell?247504
Node: Is this Shell Interactive?248153
Node: Interactive Shell Behavior248968
Node: Bash Conditional Expressions252456
Node: Shell Arithmetic256822
Node: Aliases259639
Node: Arrays262187
Node: The Directory Stack267553
Node: Directory Stack Builtins268337
Node: Controlling the Prompt271305
Node: The Restricted Shell274067
Node: Bash POSIX Mode275892
Node: Job Control286243
Node: Job Control Basics286703
Node: Job Control Builtins291671
Node: Job Control Variables296398
Node: Command Line Editing297554
Node: Introduction and Notation299225
Node: Readline Interaction300848
Node: Readline Bare Essentials302039
Node: Readline Movement Commands303822
Node: Readline Killing Commands304782
Node: Readline Arguments306700
Node: Searching307744
Node: Readline Init File309930
Node: Readline Init File Syntax311077
Node: Conditional Init Constructs331448
Node: Sample Init File335644
Node: Bindable Readline Commands338761
Node: Commands For Moving339965
Node: Commands For History341814
Node: Commands For Text346109
Node: Commands For Killing349498
Node: Numeric Arguments351979
Node: Commands For Completion353118
Node: Keyboard Macros357309
Node: Miscellaneous Commands357996
Node: Readline vi Mode363949
Node: Programmable Completion364856
Node: Programmable Completion Builtins372317
Node: A Programmable Completion Example382203
Node: Using History Interactively387454
Node: Bash History Facilities388138
Node: Bash History Builtins391143
Node: History Interaction395674
Node: Event Designators398741
Node: Word Designators399960
Node: Modifiers401597
Node: Installing Bash402999
Node: Basic Installation404136
Node: Compilers and Options407394
Node: Compiling For Multiple Architectures408135
Node: Installation Names409828
Node: Specifying the System Type410646
Node: Sharing Defaults411362
Node: Operation Controls412035
Node: Optional Features412993
Node: Reporting Bugs423519
Node: Major Differences From The Bourne Shell424713
Node: GNU Free Documentation License441565
Node: Indexes466742
Node: Builtin Index467196
Node: Reserved Word Index474023
Node: Variable Index476471
Node: Function Index492149
Node: Concept Index505452

End Tag Table