more error checking for hash builtin; fix for [[ builtin and some test syntax errors

This commit is contained in:
Chet Ramey
2023-09-13 16:25:28 -04:00
parent 32826f717d
commit 94bce520e8
25 changed files with 1898 additions and 1707 deletions
+153 -149
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.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.
@@ -26,10 +26,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
@@ -3473,8 +3473,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]
@@ -12104,7 +12108,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)
@@ -12166,36 +12170,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)
@@ -12869,138 +12873,138 @@ D.5 Concept Index

Tag Table:
Node: Top890
Node: Introduction2803
Node: What is Bash?3016
Node: What is a shell?4127
Node: Definitions6662
Node: Basic Shell Features9610
Node: Shell Syntax10826
Node: Shell Operation11849
Node: Quoting13139
Node: Escape Character14440
Node: Single Quotes14922
Node: Double Quotes15267
Node: ANSI-C Quoting16542
Node: Locale Translation17851
Node: Creating Internationalized Scripts19159
Node: Comments23273
Node: Shell Commands23888
Node: Reserved Words24823
Node: Simple Commands25576
Node: Pipelines26227
Node: Lists29210
Node: Compound Commands31002
Node: Looping Constructs32011
Node: Conditional Constructs34503
Node: Command Grouping48988
Node: Coprocesses50463
Node: GNU Parallel53123
Node: Shell Functions54037
Node: Shell Parameters61919
Node: Positional Parameters66304
Node: Special Parameters67203
Node: Shell Expansions70414
Node: Brace Expansion72499
Node: Tilde Expansion75230
Node: Shell Parameter Expansion77848
Node: Command Substitution96438
Node: Arithmetic Expansion99899
Node: Process Substitution100864
Node: Word Splitting101981
Node: Filename Expansion104026
Node: Pattern Matching106956
Node: Quote Removal111955
Node: Redirections112247
Node: Executing Commands121937
Node: Simple Command Expansion122604
Node: Command Search and Execution124711
Node: Command Execution Environment127095
Node: Environment130127
Node: Exit Status131787
Node: Signals133568
Node: Shell Scripts137014
Node: Shell Builtin Commands140038
Node: Bourne Shell Builtins142073
Node: Bash Builtins165206
Node: Modifying Shell Behavior198142
Node: The Set Builtin198484
Node: The Shopt Builtin209455
Node: Special Builtins225590
Node: Shell Variables226566
Node: Bourne Shell Variables227000
Node: Bash Variables229101
Node: Bash Features264157
Node: Invoking Bash265167
Node: Bash Startup Files271203
Node: Interactive Shells276331
Node: What is an Interactive Shell?276739
Node: Is this Shell Interactive?277385
Node: Interactive Shell Behavior278197
Node: Bash Conditional Expressions281823
Node: Shell Arithmetic286733
Node: Aliases289691
Node: Arrays292582
Node: The Directory Stack299213
Node: Directory Stack Builtins299994
Node: Controlling the Prompt304251
Node: The Restricted Shell307213
Node: Bash POSIX Mode309820
Node: Shell Compatibility Mode325978
Node: Job Control334219
Node: Job Control Basics334676
Node: Job Control Builtins339675
Node: Job Control Variables345467
Node: Command Line Editing346620
Node: Introduction and Notation348288
Node: Readline Interaction349908
Node: Readline Bare Essentials351096
Node: Readline Movement Commands352882
Node: Readline Killing Commands353839
Node: Readline Arguments355757
Node: Searching356798
Node: Readline Init File358981
Node: Readline Init File Syntax360239
Node: Conditional Init Constructs384261
Node: Sample Init File388454
Node: Bindable Readline Commands391575
Node: Commands For Moving392776
Node: Commands For History394824
Node: Commands For Text399815
Node: Commands For Killing403790
Node: Numeric Arguments406491
Node: Commands For Completion407627
Node: Keyboard Macros411815
Node: Miscellaneous Commands412500
Node: Readline vi Mode418535
Node: Programmable Completion419439
Node: Programmable Completion Builtins427216
Node: A Programmable Completion Example438333
Node: Using History Interactively443578
Node: Bash History Facilities444259
Node: Bash History Builtins447267
Node: History Interaction452355
Node: Event Designators456165
Node: Word Designators457700
Node: Modifiers459562
Node: Installing Bash461367
Node: Basic Installation462501
Node: Compilers and Options466220
Node: Compiling For Multiple Architectures466958
Node: Installation Names468647
Node: Specifying the System Type470753
Node: Sharing Defaults471467
Node: Operation Controls472137
Node: Optional Features473092
Node: Reporting Bugs484308
Node: Major Differences From The Bourne Shell485639
Node: GNU Free Documentation License502494
Node: Indexes527668
Node: Builtin Index528119
Node: Reserved Word Index535217
Node: Variable Index537662
Node: Function Index554793
Node: Concept Index568511
Node: Top896
Node: Introduction2815
Node: What is Bash?3028
Node: What is a shell?4139
Node: Definitions6674
Node: Basic Shell Features9622
Node: Shell Syntax10838
Node: Shell Operation11861
Node: Quoting13151
Node: Escape Character14452
Node: Single Quotes14934
Node: Double Quotes15279
Node: ANSI-C Quoting16554
Node: Locale Translation17863
Node: Creating Internationalized Scripts19171
Node: Comments23285
Node: Shell Commands23900
Node: Reserved Words24835
Node: Simple Commands25588
Node: Pipelines26239
Node: Lists29222
Node: Compound Commands31014
Node: Looping Constructs32023
Node: Conditional Constructs34515
Node: Command Grouping49000
Node: Coprocesses50475
Node: GNU Parallel53135
Node: Shell Functions54049
Node: Shell Parameters61931
Node: Positional Parameters66316
Node: Special Parameters67215
Node: Shell Expansions70426
Node: Brace Expansion72511
Node: Tilde Expansion75242
Node: Shell Parameter Expansion77860
Node: Command Substitution96450
Node: Arithmetic Expansion99911
Node: Process Substitution100876
Node: Word Splitting101993
Node: Filename Expansion104038
Node: Pattern Matching106968
Node: Quote Removal111967
Node: Redirections112259
Node: Executing Commands121949
Node: Simple Command Expansion122616
Node: Command Search and Execution124723
Node: Command Execution Environment127107
Node: Environment130139
Node: Exit Status131799
Node: Signals133580
Node: Shell Scripts137026
Node: Shell Builtin Commands140050
Node: Bourne Shell Builtins142085
Node: Bash Builtins165474
Node: Modifying Shell Behavior198410
Node: The Set Builtin198752
Node: The Shopt Builtin209723
Node: Special Builtins225858
Node: Shell Variables226834
Node: Bourne Shell Variables227268
Node: Bash Variables229369
Node: Bash Features264425
Node: Invoking Bash265435
Node: Bash Startup Files271471
Node: Interactive Shells276599
Node: What is an Interactive Shell?277007
Node: Is this Shell Interactive?277653
Node: Interactive Shell Behavior278465
Node: Bash Conditional Expressions282091
Node: Shell Arithmetic287001
Node: Aliases289959
Node: Arrays292850
Node: The Directory Stack299481
Node: Directory Stack Builtins300262
Node: Controlling the Prompt304519
Node: The Restricted Shell307481
Node: Bash POSIX Mode310088
Node: Shell Compatibility Mode326246
Node: Job Control334487
Node: Job Control Basics334944
Node: Job Control Builtins339943
Node: Job Control Variables345735
Node: Command Line Editing346888
Node: Introduction and Notation348556
Node: Readline Interaction350176
Node: Readline Bare Essentials351364
Node: Readline Movement Commands353150
Node: Readline Killing Commands354107
Node: Readline Arguments356025
Node: Searching357066
Node: Readline Init File359249
Node: Readline Init File Syntax360507
Node: Conditional Init Constructs384529
Node: Sample Init File388722
Node: Bindable Readline Commands391843
Node: Commands For Moving393044
Node: Commands For History395092
Node: Commands For Text400083
Node: Commands For Killing404058
Node: Numeric Arguments406759
Node: Commands For Completion407895
Node: Keyboard Macros412083
Node: Miscellaneous Commands412768
Node: Readline vi Mode418803
Node: Programmable Completion419707
Node: Programmable Completion Builtins427484
Node: A Programmable Completion Example438601
Node: Using History Interactively443846
Node: Bash History Facilities444527
Node: Bash History Builtins447535
Node: History Interaction452623
Node: Event Designators456433
Node: Word Designators457968
Node: Modifiers459830
Node: Installing Bash461635
Node: Basic Installation462769
Node: Compilers and Options466488
Node: Compiling For Multiple Architectures467226
Node: Installation Names468915
Node: Specifying the System Type471021
Node: Sharing Defaults471735
Node: Operation Controls472405
Node: Optional Features473360
Node: Reporting Bugs484576
Node: Major Differences From The Bourne Shell485907
Node: GNU Free Documentation License502762
Node: Indexes527936
Node: Builtin Index528387
Node: Reserved Word Index535485
Node: Variable Index537930
Node: Function Index555061
Node: Concept Index568779

End Tag Table