commit bash-20170825 snapshot

This commit is contained in:
Chet Ramey
2017-08-25 15:12:43 -04:00
parent 6016e31f04
commit 560db36b30
95 changed files with 35786 additions and 25841 deletions
+137 -135
View File
@@ -1,4 +1,4 @@
This is bashref.info, produced by makeinfo version 6.3 from
This is bashref.info, produced by makeinfo version 6.4 from
bashref.texi.
This text is a brief description of the features that are present in the
@@ -1725,7 +1725,7 @@ omitted, the operator tests only for existence.
$ echo ${string:7}
7890abcdefgh
$ echo ${string:7:0}
$ echo ${string:7:2}
78
$ echo ${string:7:-2}
@@ -1733,7 +1733,7 @@ omitted, the operator tests only for existence.
$ echo ${string: -7}
bcdefgh
$ echo ${string: -7:0}
$ echo ${string: -7:2}
bc
$ echo ${string: -7:-2}
@@ -1742,7 +1742,7 @@ omitted, the operator tests only for existence.
$ echo ${1:7}
7890abcdefgh
$ echo ${1:7:0}
$ echo ${1:7:2}
78
$ echo ${1:7:-2}
@@ -1750,7 +1750,7 @@ omitted, the operator tests only for existence.
$ echo ${1: -7}
bcdefgh
$ echo ${1: -7:0}
$ echo ${1: -7:2}
bc
$ echo ${1: -7:-2}
@@ -1759,7 +1759,7 @@ omitted, the operator tests only for existence.
$ echo ${array[0]:7}
7890abcdefgh
$ echo ${array[0]:7:0}
$ echo ${array[0]:7:2}
78
$ echo ${array[0]:7:-2}
@@ -1767,7 +1767,7 @@ omitted, the operator tests only for existence.
$ echo ${array[0]: -7}
bcdefgh
$ echo ${array[0]: -7:0}
$ echo ${array[0]: -7:2}
bc
$ echo ${array[0]: -7:-2}
@@ -1786,7 +1786,7 @@ omitted, the operator tests only for existence.
$ echo ${@:7}
7 8 9 0 a b c d e f g h
$ echo ${@:7:0}
$ echo ${@:7:2}
7 8
$ echo ${@:7:-2}
@@ -1798,7 +1798,7 @@ omitted, the operator tests only for existence.
$ echo ${@:0:2}
./bash 1
$ echo ${@: -7:0}
If PARAMETER is an indexed array name subscripted by '@' or '*',
the result is the LENGTH members of the array beginning with
@@ -1823,7 +1823,7 @@ omitted, the operator tests only for existence.
$ echo ${array[@]:0:2}
0 1
$ echo ${array[@]: -7:0}
Substring expansion applied to an associative array produces
undefined results.
@@ -2848,13 +2848,13 @@ Completion Builtins::).
Unless otherwise noted, each builtin command documented as accepting
options preceded by '-' accepts '--' to signify the end of the options.
The ':', 'true', 'false', and 'test' builtins do not accept options and
do not treat '--' specially. The 'exit', 'logout', 'return', 'break',
'continue', 'let', and 'shift' builtins accept and process arguments
beginning with '-' without requiring '--'. Other builtins that accept
arguments but are not specified as accepting options interpret arguments
beginning with '-' as invalid options and require '--' to prevent this
interpretation.
The ':', 'true', 'false', and 'test'/'[' builtins do not accept options
and do not treat '--' specially. The 'exit', 'logout', 'return',
'break', 'continue', 'let', and 'shift' builtins accept and process
arguments beginning with '-' without requiring '--'. Other builtins
that accept arguments but are not specified as accepting options
interpret arguments beginning with '-' as invalid options and require
'--' to prevent this interpretation.

File: bashref.info, Node: Bourne Shell Builtins, Next: Bash Builtins, Up: Shell Builtin Commands
@@ -2969,10 +2969,11 @@ standard.
If COMMAND cannot be executed for some reason, a non-interactive
shell exits, unless the 'execfail' shell option is enabled. In
that case, it returns failure. An interactive shell returns
failure if the file cannot be executed. If no COMMAND is
specified, redirections may be used to affect the current shell
environment. If there are no redirection errors, the return status
is zero; otherwise the return status is non-zero.
failure if the file cannot be executed. A subshell exits
unconditionally if 'exec' fails. If no COMMAND is specified,
redirections may be used to affect the current shell environment.
If there are no redirection errors, the return status is zero;
otherwise the return status is non-zero.
'exit'
exit [N]
@@ -5558,7 +5559,7 @@ invocation which are not available with the 'set' builtin.
If this option is present, or if no arguments remain after option
processing, then commands are read from the standard input. This
option allows the positional parameters to be set when invoking an
interactive shell.
interactive shell or when reading input through a pipe.
'-D'
A list of all double-quoted strings preceded by '$' is printed on
@@ -8482,8 +8483,9 @@ File: bashref.info, Node: Miscellaneous Commands, Prev: Keyboard Macros, Up:
'operate-and-get-next (C-o)'
Accept the current line for execution and fetch the next line
relative to the current line from the history for editing. Any
argument is ignored.
relative to the current line from the history for editing. A
numeric argument, if supplied, specifies the history entry to use
instead of the current line.
'edit-and-execute-command (C-x C-e)'
Invoke an editor on the current command line, and execute the
@@ -10781,7 +10783,7 @@ D.1 Index of Shell Builtin Commands
* :: Bourne Shell Builtins.
(line 11)
* [: Bourne Shell Builtins.
(line 268)
(line 269)
* alias: Bash Builtins. (line 11)
* bg: Job Control Builtins.
(line 7)
@@ -10813,17 +10815,17 @@ D.1 Index of Shell Builtin Commands
* exec: Bourne Shell Builtins.
(line 102)
* exit: Bourne Shell Builtins.
(line 119)
(line 120)
* export: Bourne Shell Builtins.
(line 126)
(line 127)
* fc: Bash History Builtins.
(line 10)
* fg: Job Control Builtins.
(line 17)
* getopts: Bourne Shell Builtins.
(line 142)
(line 143)
* hash: Bourne Shell Builtins.
(line 185)
(line 186)
* help: Bash Builtins. (line 323)
* history: Bash History Builtins.
(line 40)
@@ -10841,34 +10843,34 @@ D.1 Index of Shell Builtin Commands
* pushd: Directory Stack Builtins.
(line 53)
* pwd: Bourne Shell Builtins.
(line 205)
(line 206)
* read: Bash Builtins. (line 459)
* readarray: Bash Builtins. (line 553)
* readonly: Bourne Shell Builtins.
(line 215)
(line 216)
* return: Bourne Shell Builtins.
(line 234)
(line 235)
* set: The Set Builtin. (line 11)
* shift: Bourne Shell Builtins.
(line 255)
(line 256)
* shopt: The Shopt Builtin. (line 9)
* source: Bash Builtins. (line 562)
* suspend: Job Control Builtins.
(line 104)
* test: Bourne Shell Builtins.
(line 268)
(line 269)
* times: Bourne Shell Builtins.
(line 343)
(line 344)
* trap: Bourne Shell Builtins.
(line 349)
(line 350)
* type: Bash Builtins. (line 567)
* typeset: Bash Builtins. (line 599)
* ulimit: Bash Builtins. (line 605)
* umask: Bourne Shell Builtins.
(line 398)
(line 399)
* unalias: Bash Builtins. (line 704)
* unset: Bourne Shell Builtins.
(line 416)
(line 417)
* wait: Job Control Builtins.
(line 76)
@@ -11215,7 +11217,7 @@ D.4 Function Index
* dynamic-complete-history (M-<TAB>): Commands For Completion.
(line 90)
* edit-and-execute-command (C-x C-e): Miscellaneous Commands.
(line 139)
(line 140)
* end-kbd-macro (C-x )): Keyboard Macros. (line 9)
* end-of-file (usually C-d): Commands For Text. (line 6)
* end-of-history (M->): Commands For History.
@@ -11534,101 +11536,101 @@ Node: Shell Expansions63212
Node: Brace Expansion65335
Node: Tilde Expansion68169
Node: Shell Parameter Expansion70517
Node: Command Substitution84649
Node: Arithmetic Expansion86004
Node: Process Substitution86936
Node: Word Splitting88056
Node: Filename Expansion90000
Node: Pattern Matching92374
Node: Quote Removal96360
Node: Redirections96655
Node: Executing Commands106213
Node: Simple Command Expansion106883
Node: Command Search and Execution108813
Node: Command Execution Environment111149
Node: Environment114133
Node: Exit Status115792
Node: Signals117462
Node: Shell Scripts119429
Node: Shell Builtin Commands121944
Node: Bourne Shell Builtins123978
Node: Bash Builtins144578
Node: Modifying Shell Behavior173487
Node: The Set Builtin173832
Node: The Shopt Builtin184245
Node: Special Builtins200580
Node: Shell Variables201559
Node: Bourne Shell Variables201996
Node: Bash Variables204100
Node: Bash Features233893
Node: Invoking Bash234792
Node: Bash Startup Files240741
Node: Interactive Shells245844
Node: What is an Interactive Shell?246254
Node: Is this Shell Interactive?246903
Node: Interactive Shell Behavior247718
Node: Bash Conditional Expressions251206
Node: Shell Arithmetic255572
Node: Aliases258389
Node: Arrays260937
Node: The Directory Stack266099
Node: Directory Stack Builtins266883
Node: Controlling the Prompt269851
Node: The Restricted Shell272613
Node: Bash POSIX Mode274438
Node: Job Control284789
Node: Job Control Basics285249
Node: Job Control Builtins290217
Node: Job Control Variables294944
Node: Command Line Editing296100
Node: Introduction and Notation297771
Node: Readline Interaction299394
Node: Readline Bare Essentials300585
Node: Readline Movement Commands302368
Node: Readline Killing Commands303328
Node: Readline Arguments305246
Node: Searching306290
Node: Readline Init File308476
Node: Readline Init File Syntax309623
Node: Conditional Init Constructs329810
Node: Sample Init File332335
Node: Bindable Readline Commands335452
Node: Commands For Moving336656
Node: Commands For History338505
Node: Commands For Text342800
Node: Commands For Killing346189
Node: Numeric Arguments348670
Node: Commands For Completion349809
Node: Keyboard Macros354000
Node: Miscellaneous Commands354687
Node: Readline vi Mode360563
Node: Programmable Completion361470
Node: Programmable Completion Builtins368931
Node: A Programmable Completion Example378817
Node: Using History Interactively384068
Node: Bash History Facilities384752
Node: Bash History Builtins387753
Node: History Interaction392045
Node: Event Designators395009
Node: Word Designators396228
Node: Modifiers397865
Node: Installing Bash399267
Node: Basic Installation400404
Node: Compilers and Options403095
Node: Compiling For Multiple Architectures403836
Node: Installation Names405499
Node: Specifying the System Type406317
Node: Sharing Defaults407033
Node: Operation Controls407706
Node: Optional Features408664
Node: Reporting Bugs419190
Node: Major Differences From The Bourne Shell420384
Node: GNU Free Documentation License437236
Node: Indexes462413
Node: Builtin Index462867
Node: Reserved Word Index469694
Node: Variable Index472142
Node: Function Index487820
Node: Concept Index501123
Node: Command Substitution84694
Node: Arithmetic Expansion86049
Node: Process Substitution86981
Node: Word Splitting88101
Node: Filename Expansion90045
Node: Pattern Matching92419
Node: Quote Removal96405
Node: Redirections96700
Node: Executing Commands106258
Node: Simple Command Expansion106928
Node: Command Search and Execution108858
Node: Command Execution Environment111194
Node: Environment114178
Node: Exit Status115837
Node: Signals117507
Node: Shell Scripts119474
Node: Shell Builtin Commands121989
Node: Bourne Shell Builtins124027
Node: Bash Builtins144682
Node: Modifying Shell Behavior173591
Node: The Set Builtin173936
Node: The Shopt Builtin184349
Node: Special Builtins200684
Node: Shell Variables201663
Node: Bourne Shell Variables202100
Node: Bash Variables204204
Node: Bash Features233997
Node: Invoking Bash234896
Node: Bash Startup Files240882
Node: Interactive Shells245985
Node: What is an Interactive Shell?246395
Node: Is this Shell Interactive?247044
Node: Interactive Shell Behavior247859
Node: Bash Conditional Expressions251347
Node: Shell Arithmetic255713
Node: Aliases258530
Node: Arrays261078
Node: The Directory Stack266240
Node: Directory Stack Builtins267024
Node: Controlling the Prompt269992
Node: The Restricted Shell272754
Node: Bash POSIX Mode274579
Node: Job Control284930
Node: Job Control Basics285390
Node: Job Control Builtins290358
Node: Job Control Variables295085
Node: Command Line Editing296241
Node: Introduction and Notation297912
Node: Readline Interaction299535
Node: Readline Bare Essentials300726
Node: Readline Movement Commands302509
Node: Readline Killing Commands303469
Node: Readline Arguments305387
Node: Searching306431
Node: Readline Init File308617
Node: Readline Init File Syntax309764
Node: Conditional Init Constructs329951
Node: Sample Init File332476
Node: Bindable Readline Commands335593
Node: Commands For Moving336797
Node: Commands For History338646
Node: Commands For Text342941
Node: Commands For Killing346330
Node: Numeric Arguments348811
Node: Commands For Completion349950
Node: Keyboard Macros354141
Node: Miscellaneous Commands354828
Node: Readline vi Mode360781
Node: Programmable Completion361688
Node: Programmable Completion Builtins369149
Node: A Programmable Completion Example379035
Node: Using History Interactively384286
Node: Bash History Facilities384970
Node: Bash History Builtins387971
Node: History Interaction392263
Node: Event Designators395227
Node: Word Designators396446
Node: Modifiers398083
Node: Installing Bash399485
Node: Basic Installation400622
Node: Compilers and Options403313
Node: Compiling For Multiple Architectures404054
Node: Installation Names405717
Node: Specifying the System Type406535
Node: Sharing Defaults407251
Node: Operation Controls407924
Node: Optional Features408882
Node: Reporting Bugs419408
Node: Major Differences From The Bourne Shell420602
Node: GNU Free Documentation License437454
Node: Indexes462631
Node: Builtin Index463085
Node: Reserved Word Index469912
Node: Variable Index472360
Node: Function Index488038
Node: Concept Index501341

End Tag Table