mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-13 07:00:49 +02:00
more error checking for hash builtin; fix for [[ builtin and some test syntax errors
This commit is contained in:
+153
-149
@@ -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.3, 31 August 2023).
|
||||
Bash shell (version 5.3, 13 September 2023).
|
||||
|
||||
This is Edition 5.3, last updated 31 August 2023, of 'The GNU Bash
|
||||
This is Edition 5.3, last updated 13 September 2023, of 'The GNU Bash
|
||||
Reference Manual', for 'Bash', Version 5.3.
|
||||
|
||||
Copyright (C) 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, 31 August 2023). The Bash home page is
|
||||
Bash shell (version 5.3, 13 September 2023). The Bash home page is
|
||||
<http://www.gnu.org/software/bash/>.
|
||||
|
||||
This is Edition 5.3, last updated 31 August 2023, of 'The GNU Bash
|
||||
This is Edition 5.3, last updated 13 September 2023, of 'The GNU Bash
|
||||
Reference Manual', for 'Bash', Version 5.3.
|
||||
|
||||
Bash contains features that appear in other popular shells, and some
|
||||
@@ -3474,8 +3474,12 @@ standard.
|
||||
before the hashed full pathname. The '-l' option causes output to
|
||||
be displayed in a format that may be reused as input. If no
|
||||
arguments are given, or if only '-l' is supplied, information about
|
||||
remembered commands is printed. The return status is zero unless a
|
||||
NAME is not found or an invalid option is supplied.
|
||||
remembered commands is printed. The '-t', '-d', and '-p' options
|
||||
(the options that act on the NAME arguments) are mutually
|
||||
exclusive. Only one will be active. If more than one is supplied,
|
||||
'-t' has higher priority than '-p', and both are higher priority
|
||||
than '-d'. The return status is zero unless a NAME is not found or
|
||||
an invalid option is supplied.
|
||||
|
||||
'pwd'
|
||||
pwd [-LP]
|
||||
@@ -12105,7 +12109,7 @@ D.1 Index of Shell Builtin Commands
|
||||
* :: Bourne Shell Builtins.
|
||||
(line 11)
|
||||
* [: Bourne Shell Builtins.
|
||||
(line 281)
|
||||
(line 285)
|
||||
* alias: Bash Builtins. (line 11)
|
||||
* bg: Job Control Builtins.
|
||||
(line 7)
|
||||
@@ -12167,36 +12171,36 @@ D.1 Index of Shell Builtin Commands
|
||||
* pushd: Directory Stack Builtins.
|
||||
(line 69)
|
||||
* pwd: Bourne Shell Builtins.
|
||||
(line 218)
|
||||
(line 222)
|
||||
* read: Bash Builtins. (line 514)
|
||||
* readarray: Bash Builtins. (line 617)
|
||||
* readonly: Bourne Shell Builtins.
|
||||
(line 228)
|
||||
(line 232)
|
||||
* return: Bourne Shell Builtins.
|
||||
(line 247)
|
||||
(line 251)
|
||||
* set: The Set Builtin. (line 11)
|
||||
* shift: Bourne Shell Builtins.
|
||||
(line 268)
|
||||
(line 272)
|
||||
* shopt: The Shopt Builtin. (line 9)
|
||||
* source: Bash Builtins. (line 626)
|
||||
* suspend: Job Control Builtins.
|
||||
(line 116)
|
||||
* test: Bourne Shell Builtins.
|
||||
(line 281)
|
||||
(line 285)
|
||||
* times: Bourne Shell Builtins.
|
||||
(line 383)
|
||||
(line 387)
|
||||
* trap: Bourne Shell Builtins.
|
||||
(line 389)
|
||||
(line 393)
|
||||
* true: Bourne Shell Builtins.
|
||||
(line 451)
|
||||
(line 455)
|
||||
* type: Bash Builtins. (line 631)
|
||||
* typeset: Bash Builtins. (line 669)
|
||||
* ulimit: Bash Builtins. (line 675)
|
||||
* umask: Bourne Shell Builtins.
|
||||
(line 456)
|
||||
(line 460)
|
||||
* unalias: Bash Builtins. (line 781)
|
||||
* unset: Bourne Shell Builtins.
|
||||
(line 474)
|
||||
(line 478)
|
||||
* wait: Job Control Builtins.
|
||||
(line 76)
|
||||
|
||||
@@ -12870,138 +12874,138 @@ D.5 Concept Index
|
||||
|
||||
|
||||
Tag Table:
|
||||
Node: Top893
|
||||
Node: Introduction2809
|
||||
Node: What is Bash?3025
|
||||
Node: What is a shell?4139
|
||||
Node: Definitions6677
|
||||
Node: Basic Shell Features9628
|
||||
Node: Shell Syntax10847
|
||||
Node: Shell Operation11873
|
||||
Node: Quoting13166
|
||||
Node: Escape Character14470
|
||||
Node: Single Quotes14955
|
||||
Node: Double Quotes15303
|
||||
Node: ANSI-C Quoting16581
|
||||
Node: Locale Translation17893
|
||||
Node: Creating Internationalized Scripts19204
|
||||
Node: Comments23321
|
||||
Node: Shell Commands23939
|
||||
Node: Reserved Words24877
|
||||
Node: Simple Commands25633
|
||||
Node: Pipelines26287
|
||||
Node: Lists29273
|
||||
Node: Compound Commands31068
|
||||
Node: Looping Constructs32080
|
||||
Node: Conditional Constructs34575
|
||||
Node: Command Grouping49063
|
||||
Node: Coprocesses50541
|
||||
Node: GNU Parallel53204
|
||||
Node: Shell Functions54121
|
||||
Node: Shell Parameters62006
|
||||
Node: Positional Parameters66394
|
||||
Node: Special Parameters67296
|
||||
Node: Shell Expansions70510
|
||||
Node: Brace Expansion72598
|
||||
Node: Tilde Expansion75332
|
||||
Node: Shell Parameter Expansion77953
|
||||
Node: Command Substitution96546
|
||||
Node: Arithmetic Expansion100010
|
||||
Node: Process Substitution100978
|
||||
Node: Word Splitting102098
|
||||
Node: Filename Expansion104146
|
||||
Node: Pattern Matching107079
|
||||
Node: Quote Removal112081
|
||||
Node: Redirections112376
|
||||
Node: Executing Commands122069
|
||||
Node: Simple Command Expansion122739
|
||||
Node: Command Search and Execution124849
|
||||
Node: Command Execution Environment127236
|
||||
Node: Environment130271
|
||||
Node: Exit Status131934
|
||||
Node: Signals133718
|
||||
Node: Shell Scripts137167
|
||||
Node: Shell Builtin Commands140194
|
||||
Node: Bourne Shell Builtins142232
|
||||
Node: Bash Builtins165368
|
||||
Node: Modifying Shell Behavior198307
|
||||
Node: The Set Builtin198652
|
||||
Node: The Shopt Builtin209626
|
||||
Node: Special Builtins225764
|
||||
Node: Shell Variables226743
|
||||
Node: Bourne Shell Variables227180
|
||||
Node: Bash Variables229284
|
||||
Node: Bash Features264343
|
||||
Node: Invoking Bash265356
|
||||
Node: Bash Startup Files271395
|
||||
Node: Interactive Shells276526
|
||||
Node: What is an Interactive Shell?276937
|
||||
Node: Is this Shell Interactive?277586
|
||||
Node: Interactive Shell Behavior278401
|
||||
Node: Bash Conditional Expressions282030
|
||||
Node: Shell Arithmetic286943
|
||||
Node: Aliases289904
|
||||
Node: Arrays292798
|
||||
Node: The Directory Stack299432
|
||||
Node: Directory Stack Builtins300216
|
||||
Node: Controlling the Prompt304476
|
||||
Node: The Restricted Shell307441
|
||||
Node: Bash POSIX Mode310051
|
||||
Node: Shell Compatibility Mode326212
|
||||
Node: Job Control334456
|
||||
Node: Job Control Basics334916
|
||||
Node: Job Control Builtins339918
|
||||
Node: Job Control Variables345713
|
||||
Node: Command Line Editing346869
|
||||
Node: Introduction and Notation348540
|
||||
Node: Readline Interaction350163
|
||||
Node: Readline Bare Essentials351354
|
||||
Node: Readline Movement Commands353143
|
||||
Node: Readline Killing Commands354103
|
||||
Node: Readline Arguments356024
|
||||
Node: Searching357068
|
||||
Node: Readline Init File359254
|
||||
Node: Readline Init File Syntax360515
|
||||
Node: Conditional Init Constructs384540
|
||||
Node: Sample Init File388736
|
||||
Node: Bindable Readline Commands391860
|
||||
Node: Commands For Moving393064
|
||||
Node: Commands For History395115
|
||||
Node: Commands For Text400109
|
||||
Node: Commands For Killing404087
|
||||
Node: Numeric Arguments406791
|
||||
Node: Commands For Completion407930
|
||||
Node: Keyboard Macros412121
|
||||
Node: Miscellaneous Commands412809
|
||||
Node: Readline vi Mode418847
|
||||
Node: Programmable Completion419754
|
||||
Node: Programmable Completion Builtins427534
|
||||
Node: A Programmable Completion Example438654
|
||||
Node: Using History Interactively443902
|
||||
Node: Bash History Facilities444586
|
||||
Node: Bash History Builtins447597
|
||||
Node: History Interaction452688
|
||||
Node: Event Designators456501
|
||||
Node: Word Designators458039
|
||||
Node: Modifiers459904
|
||||
Node: Installing Bash461712
|
||||
Node: Basic Installation462849
|
||||
Node: Compilers and Options466571
|
||||
Node: Compiling For Multiple Architectures467312
|
||||
Node: Installation Names469004
|
||||
Node: Specifying the System Type471113
|
||||
Node: Sharing Defaults471830
|
||||
Node: Operation Controls472503
|
||||
Node: Optional Features473461
|
||||
Node: Reporting Bugs484680
|
||||
Node: Major Differences From The Bourne Shell486014
|
||||
Node: GNU Free Documentation License502872
|
||||
Node: Indexes528049
|
||||
Node: Builtin Index528503
|
||||
Node: Reserved Word Index535604
|
||||
Node: Variable Index538052
|
||||
Node: Function Index555186
|
||||
Node: Concept Index568907
|
||||
Node: Top899
|
||||
Node: Introduction2821
|
||||
Node: What is Bash?3037
|
||||
Node: What is a shell?4151
|
||||
Node: Definitions6689
|
||||
Node: Basic Shell Features9640
|
||||
Node: Shell Syntax10859
|
||||
Node: Shell Operation11885
|
||||
Node: Quoting13178
|
||||
Node: Escape Character14482
|
||||
Node: Single Quotes14967
|
||||
Node: Double Quotes15315
|
||||
Node: ANSI-C Quoting16593
|
||||
Node: Locale Translation17905
|
||||
Node: Creating Internationalized Scripts19216
|
||||
Node: Comments23333
|
||||
Node: Shell Commands23951
|
||||
Node: Reserved Words24889
|
||||
Node: Simple Commands25645
|
||||
Node: Pipelines26299
|
||||
Node: Lists29285
|
||||
Node: Compound Commands31080
|
||||
Node: Looping Constructs32092
|
||||
Node: Conditional Constructs34587
|
||||
Node: Command Grouping49075
|
||||
Node: Coprocesses50553
|
||||
Node: GNU Parallel53216
|
||||
Node: Shell Functions54133
|
||||
Node: Shell Parameters62018
|
||||
Node: Positional Parameters66406
|
||||
Node: Special Parameters67308
|
||||
Node: Shell Expansions70522
|
||||
Node: Brace Expansion72610
|
||||
Node: Tilde Expansion75344
|
||||
Node: Shell Parameter Expansion77965
|
||||
Node: Command Substitution96558
|
||||
Node: Arithmetic Expansion100022
|
||||
Node: Process Substitution100990
|
||||
Node: Word Splitting102110
|
||||
Node: Filename Expansion104158
|
||||
Node: Pattern Matching107091
|
||||
Node: Quote Removal112093
|
||||
Node: Redirections112388
|
||||
Node: Executing Commands122081
|
||||
Node: Simple Command Expansion122751
|
||||
Node: Command Search and Execution124861
|
||||
Node: Command Execution Environment127248
|
||||
Node: Environment130283
|
||||
Node: Exit Status131946
|
||||
Node: Signals133730
|
||||
Node: Shell Scripts137179
|
||||
Node: Shell Builtin Commands140206
|
||||
Node: Bourne Shell Builtins142244
|
||||
Node: Bash Builtins165636
|
||||
Node: Modifying Shell Behavior198575
|
||||
Node: The Set Builtin198920
|
||||
Node: The Shopt Builtin209894
|
||||
Node: Special Builtins226032
|
||||
Node: Shell Variables227011
|
||||
Node: Bourne Shell Variables227448
|
||||
Node: Bash Variables229552
|
||||
Node: Bash Features264611
|
||||
Node: Invoking Bash265624
|
||||
Node: Bash Startup Files271663
|
||||
Node: Interactive Shells276794
|
||||
Node: What is an Interactive Shell?277205
|
||||
Node: Is this Shell Interactive?277854
|
||||
Node: Interactive Shell Behavior278669
|
||||
Node: Bash Conditional Expressions282298
|
||||
Node: Shell Arithmetic287211
|
||||
Node: Aliases290172
|
||||
Node: Arrays293066
|
||||
Node: The Directory Stack299700
|
||||
Node: Directory Stack Builtins300484
|
||||
Node: Controlling the Prompt304744
|
||||
Node: The Restricted Shell307709
|
||||
Node: Bash POSIX Mode310319
|
||||
Node: Shell Compatibility Mode326480
|
||||
Node: Job Control334724
|
||||
Node: Job Control Basics335184
|
||||
Node: Job Control Builtins340186
|
||||
Node: Job Control Variables345981
|
||||
Node: Command Line Editing347137
|
||||
Node: Introduction and Notation348808
|
||||
Node: Readline Interaction350431
|
||||
Node: Readline Bare Essentials351622
|
||||
Node: Readline Movement Commands353411
|
||||
Node: Readline Killing Commands354371
|
||||
Node: Readline Arguments356292
|
||||
Node: Searching357336
|
||||
Node: Readline Init File359522
|
||||
Node: Readline Init File Syntax360783
|
||||
Node: Conditional Init Constructs384808
|
||||
Node: Sample Init File389004
|
||||
Node: Bindable Readline Commands392128
|
||||
Node: Commands For Moving393332
|
||||
Node: Commands For History395383
|
||||
Node: Commands For Text400377
|
||||
Node: Commands For Killing404355
|
||||
Node: Numeric Arguments407059
|
||||
Node: Commands For Completion408198
|
||||
Node: Keyboard Macros412389
|
||||
Node: Miscellaneous Commands413077
|
||||
Node: Readline vi Mode419115
|
||||
Node: Programmable Completion420022
|
||||
Node: Programmable Completion Builtins427802
|
||||
Node: A Programmable Completion Example438922
|
||||
Node: Using History Interactively444170
|
||||
Node: Bash History Facilities444854
|
||||
Node: Bash History Builtins447865
|
||||
Node: History Interaction452956
|
||||
Node: Event Designators456769
|
||||
Node: Word Designators458307
|
||||
Node: Modifiers460172
|
||||
Node: Installing Bash461980
|
||||
Node: Basic Installation463117
|
||||
Node: Compilers and Options466839
|
||||
Node: Compiling For Multiple Architectures467580
|
||||
Node: Installation Names469272
|
||||
Node: Specifying the System Type471381
|
||||
Node: Sharing Defaults472098
|
||||
Node: Operation Controls472771
|
||||
Node: Optional Features473729
|
||||
Node: Reporting Bugs484948
|
||||
Node: Major Differences From The Bourne Shell486282
|
||||
Node: GNU Free Documentation License503140
|
||||
Node: Indexes528317
|
||||
Node: Builtin Index528771
|
||||
Node: Reserved Word Index535872
|
||||
Node: Variable Index538320
|
||||
Node: Function Index555454
|
||||
Node: Concept Index569175
|
||||
|
||||
End Tag Table
|
||||
|
||||
|
||||
Reference in New Issue
Block a user