mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-27 23:53:18 +02:00
commit bash-20200720 snapshot
This commit is contained in:
@@ -8743,3 +8743,24 @@ builtins/complete.def
|
||||
to hold that information and print everything instead of eumerating
|
||||
each option and action separately. From a patch submitted by
|
||||
Martin Kealey <martin@kurahaupo.gen.nz>
|
||||
|
||||
7/27
|
||||
----
|
||||
variables.c
|
||||
- push_posix_tempvar_internal: restore $SHELLOPTS after restoring the
|
||||
values of shell options saved by `local -' by calling set_shellopts().
|
||||
Report from Grisha Levit <grishalevit@gmail.com>
|
||||
|
||||
flags.c
|
||||
- reset_shell_flags: set histexp_flag to 0 and let bash_history_reinit
|
||||
take care of setting history_expansion appropriately. Report and fix
|
||||
from Grisha Levit <grishalevit@gmail.com>
|
||||
|
||||
7/28
|
||||
----
|
||||
general.c
|
||||
- assignment: if (FLAGS & 1), we are parsing the contents of a compound
|
||||
assignment, and a word must begin with a `[' and have a valid
|
||||
subscript terminated by `]' before the `=' to be considered an
|
||||
assignment statemen and subsequently expanded like one. Report from
|
||||
Alexey Izbyshev <izbyshev@ispras.ru>
|
||||
|
||||
+467
-461
File diff suppressed because it is too large
Load Diff
+22
-11
@@ -3,7 +3,7 @@
|
||||
</HEAD>
|
||||
<BODY><TABLE WIDTH=100%>
|
||||
<TR>
|
||||
<TH ALIGN=LEFT width=33%>BASH(1)<TH ALIGN=CENTER width=33%>2020 June 5<TH ALIGN=RIGHT width=33%>BASH(1)
|
||||
<TH ALIGN=LEFT width=33%>BASH(1)<TH ALIGN=CENTER width=33%>2020 June 16<TH ALIGN=RIGHT width=33%>BASH(1)
|
||||
</TR>
|
||||
</TABLE>
|
||||
<BR><A HREF="#index">Index</A>
|
||||
@@ -2589,7 +2589,9 @@ below.
|
||||
<DD>
|
||||
The value is used to set the shell's compatibility level.
|
||||
See
|
||||
<B>SHELL COMPATIBILITY MODE</B>
|
||||
<FONT SIZE=-1><B>SHELL COMPATIBILITY MODE</B>
|
||||
|
||||
</FONT>
|
||||
below for a description of the various compatibility
|
||||
levels and their effects.
|
||||
The value may be a decimal number (e.g., 4.2) or an integer (e.g., 42)
|
||||
@@ -2601,7 +2603,9 @@ compatibility levels, the shell prints an error message and sets the
|
||||
compatibility level to the default for the current version.
|
||||
The valid values correspond to the compatibility levels
|
||||
described below under
|
||||
<B>SHELL COMPATIBILITY MODE</B>.
|
||||
<FONT SIZE=-1><B>BSHELL</B>COMPATIBILITY<B>MODE</B>.
|
||||
|
||||
</FONT>
|
||||
For example, 4.2 and 42 are valid values that correspond
|
||||
to the <B>compat42</B> <B>shopt</B> option
|
||||
and set the compatibility level to 42.
|
||||
@@ -7392,11 +7396,11 @@ replaced with an ellipsis when displaying possible completions.
|
||||
This determines when the user is queried about viewing
|
||||
the number of possible completions
|
||||
generated by the <B>possible-completions</B> command.
|
||||
It may be set to any integer value greater than or equal to
|
||||
zero. If the number of possible completions is greater than
|
||||
or equal to the value of this variable, the user is asked whether
|
||||
or not he wishes to view them; otherwise they are simply listed
|
||||
on the terminal.
|
||||
It may be set to any integer value greater than or equal to zero.
|
||||
If the number of possible completions is greater than
|
||||
or equal to the value of this variable,
|
||||
readline will ask whether or not the user wishes to view them;
|
||||
otherwise they are simply listed on the terminal.
|
||||
<DT><B>convert-meta (On)</B>
|
||||
|
||||
<DD>
|
||||
@@ -11765,7 +11769,9 @@ Read input from file descriptor <I>fd</I>.
|
||||
If no
|
||||
<I>names</I>
|
||||
|
||||
are supplied, the line read is assigned to the variable
|
||||
are supplied, the line read,
|
||||
without the ending delimiter but otherwise unmodified,
|
||||
is assigned to the variable
|
||||
<FONT SIZE=-1><B>REPLY</B>.
|
||||
|
||||
</FONT>
|
||||
@@ -13944,6 +13950,11 @@ so seeding the random number generator by assigning a value to
|
||||
|
||||
</FONT>
|
||||
will produce the same sequence as in bash-5.0
|
||||
<DT>*<DD>
|
||||
If the command hash table is empty, bash versions prior to bash-5.1
|
||||
printed an informational message to that effect, even when producing
|
||||
output that can be reused as input. Bash-5.1 suppresses that message
|
||||
when the <B>-l</B> option is supplied.
|
||||
</DL></DL>
|
||||
|
||||
|
||||
@@ -14241,7 +14252,7 @@ There may be only one active coprocess at a time.
|
||||
<HR>
|
||||
<TABLE WIDTH=100%>
|
||||
<TR>
|
||||
<TH ALIGN=LEFT width=33%>GNU Bash 5.1<TH ALIGN=CENTER width=33%>2020 June 5<TH ALIGN=RIGHT width=33%>BASH(1)
|
||||
<TH ALIGN=LEFT width=33%>GNU Bash 5.1<TH ALIGN=CENTER width=33%>2020 June 16<TH ALIGN=RIGHT width=33%>BASH(1)
|
||||
</TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
@@ -14348,6 +14359,6 @@ There may be only one active coprocess at a time.
|
||||
</DL>
|
||||
<HR>
|
||||
This document was created by man2html from bash.1.<BR>
|
||||
Time: 10 June 2020 12:00:48 EDT
|
||||
Time: 17 July 2020 15:12:43 EDT
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
||||
+151
-141
@@ -2,9 +2,9 @@ This is bash.info, produced by makeinfo version 6.7 from
|
||||
bashref.texi.
|
||||
|
||||
This text is a brief description of the features that are present in the
|
||||
Bash shell (version 5.1, 5 June 2020).
|
||||
Bash shell (version 5.1, 2 July 2020).
|
||||
|
||||
This is Edition 5.1, last updated 5 June 2020, of 'The GNU Bash
|
||||
This is Edition 5.1, last updated 2 July 2020, of 'The GNU Bash
|
||||
Reference Manual', for 'Bash', Version 5.1.
|
||||
|
||||
Copyright (C) 1988-2018 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.1, 5 June 2020). The Bash home page is
|
||||
Bash shell (version 5.1, 2 July 2020). The Bash home page is
|
||||
<http://www.gnu.org/software/bash/>.
|
||||
|
||||
This is Edition 5.1, last updated 5 June 2020, of 'The GNU Bash
|
||||
This is Edition 5.1, last updated 2 July 2020, of 'The GNU Bash
|
||||
Reference Manual', for 'Bash', Version 5.1.
|
||||
|
||||
Bash contains features that appear in other popular shells, and some
|
||||
@@ -2322,7 +2322,7 @@ file descriptor greater than 10 and assign it to {VARNAME}. If >&- or
|
||||
<&- is preceded by {VARNAME}, the value of VARNAME defines the file
|
||||
descriptor to close. If {VARNAME} is supplied, the redirection persists
|
||||
beyond the scope of the command, allowing the shell programmer to manage
|
||||
the file descriptor himself.
|
||||
the file descriptor's lifetime manually.
|
||||
|
||||
In the following descriptions, if the file descriptor number is
|
||||
omitted, and the first character of the redirection operator is '<', the
|
||||
@@ -3202,12 +3202,12 @@ standard.
|
||||
|
||||
Shift the positional parameters to the left by N. The positional
|
||||
parameters from N+1 ... '$#' are renamed to '$1' ... '$#'-N.
|
||||
Parameters represented by the numbers '$#' to '$#'-N+1 are unset.
|
||||
N must be a non-negative number less than or equal to '$#'. If N
|
||||
is zero or greater than '$#', the positional parameters are not
|
||||
changed. If N is not supplied, it is assumed to be 1. The return
|
||||
status is zero unless N is greater than '$#' or less than zero,
|
||||
non-zero otherwise.
|
||||
Parameters represented by the numbers '$#' down to '$#'-N+1 are
|
||||
unset. N must be a non-negative number less than or equal to '$#'.
|
||||
If N is zero or greater than '$#', the positional parameters are
|
||||
not changed. If N is not supplied, it is assumed to be 1. The
|
||||
return status is zero unless N is greater than '$#' or less than
|
||||
zero, non-zero otherwise.
|
||||
|
||||
'test'
|
||||
'['
|
||||
@@ -3866,13 +3866,7 @@ standard.
|
||||
line into words using the same rules the shell uses for expansion
|
||||
(described above in *note Word Splitting::). The backslash
|
||||
character '\' may be used to remove any special meaning for the
|
||||
next character read and for line continuation. If no names are
|
||||
supplied, the line read is assigned to the variable 'REPLY'. The
|
||||
exit status is zero, unless end-of-file is encountered, 'read'
|
||||
times out (in which case the status is greater than 128), a
|
||||
variable assignment error (such as assigning to a readonly
|
||||
variable) occurs, or an invalid file descriptor is supplied as the
|
||||
argument to '-u'.
|
||||
next character read and for line continuation.
|
||||
|
||||
Options, if supplied, have the following meanings:
|
||||
|
||||
@@ -3944,6 +3938,14 @@ standard.
|
||||
'-u FD'
|
||||
Read input from file descriptor FD.
|
||||
|
||||
If no NAMEs are supplied, the line read, without the ending
|
||||
delimiter but otherwise unmodified, is assigned to the variable
|
||||
'REPLY'. The exit status is zero, unless end-of-file is
|
||||
encountered, 'read' times out (in which case the status is greater
|
||||
than 128), a variable assignment error (such as assigning to a
|
||||
readonly variable) occurs, or an invalid file descriptor is
|
||||
supplied as the argument to '-u'.
|
||||
|
||||
'readarray'
|
||||
readarray [-d DELIM] [-n COUNT] [-O ORIGIN] [-s COUNT]
|
||||
[-t] [-u FD] [-C CALLBACK] [-c QUANTUM] [ARRAY]
|
||||
@@ -4746,11 +4748,6 @@ This builtin allows you to change additional shell optional behavior.
|
||||
If set, the 'echo' builtin expands backslash-escape sequences
|
||||
by default.
|
||||
|
||||
The return status when listing options is zero if all OPTNAMES are
|
||||
enabled, non-zero otherwise. When setting or unsetting options,
|
||||
the return status is zero unless an OPTNAME is not a valid shell
|
||||
option.
|
||||
|
||||
|
||||
File: bash.info, Node: Special Builtins, Prev: Modifying Shell Behavior, Up: Shell Builtin Commands
|
||||
|
||||
@@ -7032,6 +7029,10 @@ required for bash-5.1 and later versions.
|
||||
previous versions, so seeding the random number generator by
|
||||
assigning a value to 'RANDOM' will produce the same sequence
|
||||
as in bash-5.0
|
||||
* If the command hash table is empty, Bash versions prior to
|
||||
bash-5.1 printed an informational message to that effect, even
|
||||
when producing output that can be reused as input. Bash-5.1
|
||||
suppresses that message when the '-l' option is supplied.
|
||||
|
||||
|
||||
File: bash.info, Node: Job Control, Next: Command Line Editing, Prev: Bash Features, Up: Top
|
||||
@@ -7698,11 +7699,11 @@ Variable Settings
|
||||
The number of possible completions that determines when the
|
||||
user is asked whether the list of possibilities should be
|
||||
displayed. If the number of possible completions is greater
|
||||
than this value, Readline will ask the user whether or not he
|
||||
wishes to view them; otherwise, they are simply listed. This
|
||||
variable must be set to an integer value greater than or equal
|
||||
to 0. A negative value means Readline should never ask. The
|
||||
default limit is '100'.
|
||||
than or equal to this value, Readline will ask whether or not
|
||||
the user wishes to view them; otherwise, they are simply
|
||||
listed. This variable must be set to an integer value greater
|
||||
than or equal to 0. A negative value means Readline should
|
||||
never ask. The default limit is '100'.
|
||||
|
||||
'convert-meta'
|
||||
If set to 'on', Readline will convert characters with the
|
||||
@@ -8229,8 +8230,8 @@ variable assignment, and conditional syntax.
|
||||
# rather than as meta-prefixed characters
|
||||
set output-meta on
|
||||
|
||||
# if there are more than 150 possible completions for
|
||||
# a word, ask the user if he wants to see all of them
|
||||
# if there are 150 or more possible completions for a word,
|
||||
# ask whether or not the user wants to see all of them
|
||||
set completion-query-items 150
|
||||
|
||||
# For FTP
|
||||
@@ -8358,10 +8359,14 @@ File: bash.info, Node: Commands For History, Next: Commands For Text, Prev: C
|
||||
'reverse-search-history (C-r)'
|
||||
Search backward starting at the current line and moving 'up'
|
||||
through the history as necessary. This is an incremental search.
|
||||
This command sets the region to the matched text and activates the
|
||||
mark.
|
||||
|
||||
'forward-search-history (C-s)'
|
||||
Search forward starting at the current line and moving 'down'
|
||||
through the history as necessary. This is an incremental search.
|
||||
This command sets the region to the matched text and activates the
|
||||
mark.
|
||||
|
||||
'non-incremental-reverse-search-history (M-p)'
|
||||
Search backward starting at the current line and moving 'up'
|
||||
@@ -8469,6 +8474,11 @@ File: bash.info, Node: Commands For Text, Next: Commands For Killing, Prev: C
|
||||
was bound to 'self-insert' instead of executing any editing
|
||||
commands.
|
||||
|
||||
Bracketed paste sets the region (the characters between point and
|
||||
the mark) to the inserted text. It uses the concept of an _active
|
||||
mark_: when the mark is active, Readline redisplay uses the
|
||||
terminal's standout mode to denote the region.
|
||||
|
||||
'transpose-chars (C-t)'
|
||||
Drag the character before the cursor forward over the character at
|
||||
the cursor, moving the cursor forward as well. If the insertion
|
||||
@@ -11294,7 +11304,7 @@ D.1 Index of Shell Builtin Commands
|
||||
* pwd: Bourne Shell Builtins.
|
||||
(line 207)
|
||||
* read: Bash Builtins. (line 472)
|
||||
* readarray: Bash Builtins. (line 566)
|
||||
* readarray: Bash Builtins. (line 568)
|
||||
* readonly: Bourne Shell Builtins.
|
||||
(line 217)
|
||||
* return: Bourne Shell Builtins.
|
||||
@@ -11303,7 +11313,7 @@ D.1 Index of Shell Builtin Commands
|
||||
* shift: Bourne Shell Builtins.
|
||||
(line 257)
|
||||
* shopt: The Shopt Builtin. (line 9)
|
||||
* source: Bash Builtins. (line 575)
|
||||
* source: Bash Builtins. (line 577)
|
||||
* suspend: Job Control Builtins.
|
||||
(line 113)
|
||||
* test: Bourne Shell Builtins.
|
||||
@@ -11312,12 +11322,12 @@ D.1 Index of Shell Builtin Commands
|
||||
(line 349)
|
||||
* trap: Bourne Shell Builtins.
|
||||
(line 355)
|
||||
* type: Bash Builtins. (line 580)
|
||||
* typeset: Bash Builtins. (line 612)
|
||||
* ulimit: Bash Builtins. (line 618)
|
||||
* type: Bash Builtins. (line 582)
|
||||
* typeset: Bash Builtins. (line 614)
|
||||
* ulimit: Bash Builtins. (line 620)
|
||||
* umask: Bourne Shell Builtins.
|
||||
(line 404)
|
||||
* unalias: Bash Builtins. (line 721)
|
||||
* unalias: Bash Builtins. (line 723)
|
||||
* unset: Bourne Shell Builtins.
|
||||
(line 422)
|
||||
* wait: Job Control Builtins.
|
||||
@@ -11621,7 +11631,7 @@ D.4 Function Index
|
||||
* beginning-of-line (C-a): Commands For Moving. (line 6)
|
||||
* bracketed-paste-begin (): Commands For Text. (line 33)
|
||||
* call-last-kbd-macro (C-x e): Keyboard Macros. (line 13)
|
||||
* capitalize-word (M-c): Commands For Text. (line 61)
|
||||
* capitalize-word (M-c): Commands For Text. (line 66)
|
||||
* character-search (C-]): Miscellaneous Commands.
|
||||
(line 42)
|
||||
* character-search-backward (M-C-]): Miscellaneous Commands.
|
||||
@@ -11660,7 +11670,7 @@ D.4 Function Index
|
||||
(line 110)
|
||||
* do-lowercase-version (M-A, M-B, M-X, ...): Miscellaneous Commands.
|
||||
(line 14)
|
||||
* downcase-word (M-l): Commands For Text. (line 57)
|
||||
* downcase-word (M-l): Commands For Text. (line 62)
|
||||
* dump-functions (): Miscellaneous Commands.
|
||||
(line 74)
|
||||
* dump-macros (): Miscellaneous Commands.
|
||||
@@ -11681,7 +11691,7 @@ D.4 Function Index
|
||||
* forward-backward-delete-char (): Commands For Text. (line 21)
|
||||
* forward-char (C-f): Commands For Moving. (line 12)
|
||||
* forward-search-history (C-s): Commands For History.
|
||||
(line 31)
|
||||
(line 33)
|
||||
* forward-word (M-f): Commands For Moving. (line 18)
|
||||
* glob-complete-word (M-g): Miscellaneous Commands.
|
||||
(line 92)
|
||||
@@ -11694,13 +11704,13 @@ D.4 Function Index
|
||||
* history-expand-line (M-^): Miscellaneous Commands.
|
||||
(line 118)
|
||||
* history-search-backward (): Commands For History.
|
||||
(line 53)
|
||||
(line 57)
|
||||
* history-search-forward (): Commands For History.
|
||||
(line 47)
|
||||
(line 51)
|
||||
* history-substring-search-backward (): Commands For History.
|
||||
(line 65)
|
||||
(line 69)
|
||||
* history-substring-search-forward (): Commands For History.
|
||||
(line 59)
|
||||
(line 63)
|
||||
* insert-comment (M-#): Miscellaneous Commands.
|
||||
(line 61)
|
||||
* insert-completions (M-*): Commands For Completion.
|
||||
@@ -11725,12 +11735,12 @@ D.4 Function Index
|
||||
(line 17)
|
||||
* next-screen-line (): Commands For Moving. (line 41)
|
||||
* non-incremental-forward-search-history (M-n): Commands For History.
|
||||
(line 41)
|
||||
(line 45)
|
||||
* non-incremental-reverse-search-history (M-p): Commands For History.
|
||||
(line 35)
|
||||
(line 39)
|
||||
* operate-and-get-next (C-o): Commands For History.
|
||||
(line 92)
|
||||
* overwrite-mode (): Commands For Text. (line 65)
|
||||
(line 96)
|
||||
* overwrite-mode (): Commands For Text. (line 70)
|
||||
* possible-command-completions (C-x !): Commands For Completion.
|
||||
(line 86)
|
||||
* possible-completions (M-?): Commands For Completion.
|
||||
@@ -11775,8 +11785,8 @@ D.4 Function Index
|
||||
* start-kbd-macro (C-x (): Keyboard Macros. (line 6)
|
||||
* tilde-expand (M-&): Miscellaneous Commands.
|
||||
(line 30)
|
||||
* transpose-chars (C-t): Commands For Text. (line 42)
|
||||
* transpose-words (M-t): Commands For Text. (line 48)
|
||||
* transpose-chars (C-t): Commands For Text. (line 47)
|
||||
* transpose-words (M-t): Commands For Text. (line 53)
|
||||
* undo (C-_ or C-x C-u): Miscellaneous Commands.
|
||||
(line 23)
|
||||
* universal-argument (): Numeric Arguments. (line 10)
|
||||
@@ -11786,13 +11796,13 @@ D.4 Function Index
|
||||
(line 12)
|
||||
* unix-word-rubout (C-w): Commands For Killing.
|
||||
(line 44)
|
||||
* upcase-word (M-u): Commands For Text. (line 53)
|
||||
* upcase-word (M-u): Commands For Text. (line 58)
|
||||
* yank (C-y): Commands For Killing.
|
||||
(line 75)
|
||||
* yank-last-arg (M-. or M-_): Commands For History.
|
||||
(line 80)
|
||||
(line 84)
|
||||
* yank-nth-arg (M-C-y): Commands For History.
|
||||
(line 71)
|
||||
(line 75)
|
||||
* yank-pop (M-y): Commands For Killing.
|
||||
(line 78)
|
||||
|
||||
@@ -12005,95 +12015,95 @@ Node: Filename Expansion93114
|
||||
Node: Pattern Matching95663
|
||||
Node: Quote Removal99649
|
||||
Node: Redirections99944
|
||||
Node: Executing Commands109502
|
||||
Node: Simple Command Expansion110172
|
||||
Node: Command Search and Execution112126
|
||||
Node: Command Execution Environment114502
|
||||
Node: Environment117486
|
||||
Node: Exit Status119145
|
||||
Node: Signals120815
|
||||
Node: Shell Scripts122782
|
||||
Node: Shell Builtin Commands125794
|
||||
Node: Bourne Shell Builtins127832
|
||||
Node: Bash Builtins148756
|
||||
Node: Modifying Shell Behavior178486
|
||||
Node: The Set Builtin178831
|
||||
Node: The Shopt Builtin189244
|
||||
Node: Special Builtins204380
|
||||
Node: Shell Variables205359
|
||||
Node: Bourne Shell Variables205796
|
||||
Node: Bash Variables207900
|
||||
Node: Bash Features240478
|
||||
Node: Invoking Bash241491
|
||||
Node: Bash Startup Files247504
|
||||
Node: Interactive Shells252607
|
||||
Node: What is an Interactive Shell?253017
|
||||
Node: Is this Shell Interactive?253666
|
||||
Node: Interactive Shell Behavior254481
|
||||
Node: Bash Conditional Expressions257995
|
||||
Node: Shell Arithmetic262572
|
||||
Node: Aliases265512
|
||||
Node: Arrays268132
|
||||
Node: The Directory Stack274141
|
||||
Node: Directory Stack Builtins274925
|
||||
Node: Controlling the Prompt277893
|
||||
Node: The Restricted Shell280843
|
||||
Node: Bash POSIX Mode283437
|
||||
Node: Shell Compatibility Mode294473
|
||||
Node: Job Control300848
|
||||
Node: Job Control Basics301308
|
||||
Node: Job Control Builtins306304
|
||||
Node: Job Control Variables311704
|
||||
Node: Command Line Editing312860
|
||||
Node: Introduction and Notation314531
|
||||
Node: Readline Interaction316154
|
||||
Node: Readline Bare Essentials317345
|
||||
Node: Readline Movement Commands319128
|
||||
Node: Readline Killing Commands320088
|
||||
Node: Readline Arguments322006
|
||||
Node: Searching323050
|
||||
Node: Readline Init File325236
|
||||
Node: Readline Init File Syntax326495
|
||||
Node: Conditional Init Constructs347025
|
||||
Node: Sample Init File351221
|
||||
Node: Bindable Readline Commands354338
|
||||
Node: Commands For Moving355542
|
||||
Node: Commands For History357593
|
||||
Node: Commands For Text362220
|
||||
Node: Commands For Killing365608
|
||||
Node: Numeric Arguments368423
|
||||
Node: Commands For Completion369562
|
||||
Node: Keyboard Macros373753
|
||||
Node: Miscellaneous Commands374440
|
||||
Node: Readline vi Mode380124
|
||||
Node: Programmable Completion381031
|
||||
Node: Programmable Completion Builtins388811
|
||||
Node: A Programmable Completion Example399506
|
||||
Node: Using History Interactively404753
|
||||
Node: Bash History Facilities405437
|
||||
Node: Bash History Builtins408442
|
||||
Node: History Interaction413171
|
||||
Node: Event Designators416791
|
||||
Node: Word Designators418145
|
||||
Node: Modifiers419905
|
||||
Node: Installing Bash421716
|
||||
Node: Basic Installation422853
|
||||
Node: Compilers and Options426111
|
||||
Node: Compiling For Multiple Architectures426852
|
||||
Node: Installation Names428545
|
||||
Node: Specifying the System Type429363
|
||||
Node: Sharing Defaults430079
|
||||
Node: Operation Controls430752
|
||||
Node: Optional Features431710
|
||||
Node: Reporting Bugs442228
|
||||
Node: Major Differences From The Bourne Shell443422
|
||||
Node: GNU Free Documentation License460274
|
||||
Node: Indexes485451
|
||||
Node: Builtin Index485905
|
||||
Node: Reserved Word Index492732
|
||||
Node: Variable Index495180
|
||||
Node: Function Index511077
|
||||
Node: Concept Index524587
|
||||
Node: Executing Commands109514
|
||||
Node: Simple Command Expansion110184
|
||||
Node: Command Search and Execution112138
|
||||
Node: Command Execution Environment114514
|
||||
Node: Environment117498
|
||||
Node: Exit Status119157
|
||||
Node: Signals120827
|
||||
Node: Shell Scripts122794
|
||||
Node: Shell Builtin Commands125806
|
||||
Node: Bourne Shell Builtins127844
|
||||
Node: Bash Builtins148773
|
||||
Node: Modifying Shell Behavior178564
|
||||
Node: The Set Builtin178909
|
||||
Node: The Shopt Builtin189322
|
||||
Node: Special Builtins204232
|
||||
Node: Shell Variables205211
|
||||
Node: Bourne Shell Variables205648
|
||||
Node: Bash Variables207752
|
||||
Node: Bash Features240330
|
||||
Node: Invoking Bash241343
|
||||
Node: Bash Startup Files247356
|
||||
Node: Interactive Shells252459
|
||||
Node: What is an Interactive Shell?252869
|
||||
Node: Is this Shell Interactive?253518
|
||||
Node: Interactive Shell Behavior254333
|
||||
Node: Bash Conditional Expressions257847
|
||||
Node: Shell Arithmetic262424
|
||||
Node: Aliases265364
|
||||
Node: Arrays267984
|
||||
Node: The Directory Stack273993
|
||||
Node: Directory Stack Builtins274777
|
||||
Node: Controlling the Prompt277745
|
||||
Node: The Restricted Shell280695
|
||||
Node: Bash POSIX Mode283289
|
||||
Node: Shell Compatibility Mode294325
|
||||
Node: Job Control300981
|
||||
Node: Job Control Basics301441
|
||||
Node: Job Control Builtins306437
|
||||
Node: Job Control Variables311837
|
||||
Node: Command Line Editing312993
|
||||
Node: Introduction and Notation314664
|
||||
Node: Readline Interaction316287
|
||||
Node: Readline Bare Essentials317478
|
||||
Node: Readline Movement Commands319261
|
||||
Node: Readline Killing Commands320221
|
||||
Node: Readline Arguments322139
|
||||
Node: Searching323183
|
||||
Node: Readline Init File325369
|
||||
Node: Readline Init File Syntax326628
|
||||
Node: Conditional Init Constructs347167
|
||||
Node: Sample Init File351363
|
||||
Node: Bindable Readline Commands354487
|
||||
Node: Commands For Moving355691
|
||||
Node: Commands For History357742
|
||||
Node: Commands For Text362535
|
||||
Node: Commands For Killing366184
|
||||
Node: Numeric Arguments368999
|
||||
Node: Commands For Completion370138
|
||||
Node: Keyboard Macros374329
|
||||
Node: Miscellaneous Commands375016
|
||||
Node: Readline vi Mode380700
|
||||
Node: Programmable Completion381607
|
||||
Node: Programmable Completion Builtins389387
|
||||
Node: A Programmable Completion Example400082
|
||||
Node: Using History Interactively405329
|
||||
Node: Bash History Facilities406013
|
||||
Node: Bash History Builtins409018
|
||||
Node: History Interaction413747
|
||||
Node: Event Designators417367
|
||||
Node: Word Designators418721
|
||||
Node: Modifiers420481
|
||||
Node: Installing Bash422292
|
||||
Node: Basic Installation423429
|
||||
Node: Compilers and Options426687
|
||||
Node: Compiling For Multiple Architectures427428
|
||||
Node: Installation Names429121
|
||||
Node: Specifying the System Type429939
|
||||
Node: Sharing Defaults430655
|
||||
Node: Operation Controls431328
|
||||
Node: Optional Features432286
|
||||
Node: Reporting Bugs442804
|
||||
Node: Major Differences From The Bourne Shell443998
|
||||
Node: GNU Free Documentation License460850
|
||||
Node: Indexes486027
|
||||
Node: Builtin Index486481
|
||||
Node: Reserved Word Index493308
|
||||
Node: Variable Index495756
|
||||
Node: Function Index511653
|
||||
Node: Concept Index525163
|
||||
|
||||
End Tag Table
|
||||
|
||||
|
||||
Binary file not shown.
+1333
-1325
File diff suppressed because it is too large
Load Diff
+3
-3
@@ -291,16 +291,16 @@
|
||||
@xrdef{Commands For Killing-pg}{131}
|
||||
@xrdef{Numeric Arguments-title}{Specifying Numeric Arguments}
|
||||
@xrdef{Numeric Arguments-snt}{Section@tie 8.4.5}
|
||||
@xrdef{Numeric Arguments-pg}{132}
|
||||
@xrdef{Commands For Completion-title}{Letting Readline Type For You}
|
||||
@xrdef{Commands For Completion-snt}{Section@tie 8.4.6}
|
||||
@xrdef{Numeric Arguments-pg}{132}
|
||||
@xrdef{Commands For Completion-pg}{132}
|
||||
@xrdef{Commands For Completion-pg}{133}
|
||||
@xrdef{Keyboard Macros-title}{Keyboard Macros}
|
||||
@xrdef{Keyboard Macros-snt}{Section@tie 8.4.7}
|
||||
@xrdef{Miscellaneous Commands-title}{Some Miscellaneous Commands}
|
||||
@xrdef{Miscellaneous Commands-snt}{Section@tie 8.4.8}
|
||||
@xrdef{Keyboard Macros-pg}{134}
|
||||
@xrdef{Miscellaneous Commands-pg}{134}
|
||||
@xrdef{Miscellaneous Commands-pg}{135}
|
||||
@xrdef{Readline vi Mode-title}{Readline vi Mode}
|
||||
@xrdef{Readline vi Mode-snt}{Section@tie 8.5}
|
||||
@xrdef{Programmable Completion-title}{Programmable Completion}
|
||||
|
||||
Binary file not shown.
+16
-16
@@ -19,7 +19,7 @@
|
||||
\entry{reverse-search-history (C-r)}{128}{\code {reverse-search-history (C-r)}}
|
||||
\entry{forward-search-history (C-s)}{128}{\code {forward-search-history (C-s)}}
|
||||
\entry{non-incremental-reverse-search-history (M-p)}{128}{\code {non-incremental-reverse-search-history (M-p)}}
|
||||
\entry{non-incremental-forward-search-history (M-n)}{128}{\code {non-incremental-forward-search-history (M-n)}}
|
||||
\entry{non-incremental-forward-search-history (M-n)}{129}{\code {non-incremental-forward-search-history (M-n)}}
|
||||
\entry{history-search-forward ()}{129}{\code {history-search-forward ()}}
|
||||
\entry{history-search-backward ()}{129}{\code {history-search-backward ()}}
|
||||
\entry{history-substring-search-forward ()}{129}{\code {history-substring-search-forward ()}}
|
||||
@@ -36,8 +36,8 @@
|
||||
\entry{bracketed-paste-begin ()}{130}{\code {bracketed-paste-begin ()}}
|
||||
\entry{transpose-chars (C-t)}{130}{\code {transpose-chars (C-t)}}
|
||||
\entry{transpose-words (M-t)}{130}{\code {transpose-words (M-t)}}
|
||||
\entry{upcase-word (M-u)}{130}{\code {upcase-word (M-u)}}
|
||||
\entry{downcase-word (M-l)}{130}{\code {downcase-word (M-l)}}
|
||||
\entry{upcase-word (M-u)}{131}{\code {upcase-word (M-u)}}
|
||||
\entry{downcase-word (M-l)}{131}{\code {downcase-word (M-l)}}
|
||||
\entry{capitalize-word (M-c)}{131}{\code {capitalize-word (M-c)}}
|
||||
\entry{overwrite-mode ()}{131}{\code {overwrite-mode ()}}
|
||||
\entry{kill-line (C-k)}{131}{\code {kill-line (C-k)}}
|
||||
@@ -48,8 +48,8 @@
|
||||
\entry{backward-kill-word (M-DEL)}{131}{\code {backward-kill-word (M-\key {DEL})}}
|
||||
\entry{shell-kill-word (M-C-d)}{131}{\code {shell-kill-word (M-C-d)}}
|
||||
\entry{shell-backward-kill-word ()}{131}{\code {shell-backward-kill-word ()}}
|
||||
\entry{shell-transpose-words (M-C-t)}{131}{\code {shell-transpose-words (M-C-t)}}
|
||||
\entry{unix-word-rubout (C-w)}{131}{\code {unix-word-rubout (C-w)}}
|
||||
\entry{shell-transpose-words (M-C-t)}{132}{\code {shell-transpose-words (M-C-t)}}
|
||||
\entry{unix-word-rubout (C-w)}{132}{\code {unix-word-rubout (C-w)}}
|
||||
\entry{unix-filename-rubout ()}{132}{\code {unix-filename-rubout ()}}
|
||||
\entry{delete-horizontal-space ()}{132}{\code {delete-horizontal-space ()}}
|
||||
\entry{kill-region ()}{132}{\code {kill-region ()}}
|
||||
@@ -60,7 +60,7 @@
|
||||
\entry{yank-pop (M-y)}{132}{\code {yank-pop (M-y)}}
|
||||
\entry{digit-argument (M-0, M-1, ...{} M--)}{132}{\code {digit-argument (\kbd {M-0}, \kbd {M-1}, \dots {} \kbd {M--})}}
|
||||
\entry{universal-argument ()}{132}{\code {universal-argument ()}}
|
||||
\entry{complete (TAB)}{132}{\code {complete (\key {TAB})}}
|
||||
\entry{complete (TAB)}{133}{\code {complete (\key {TAB})}}
|
||||
\entry{possible-completions (M-?)}{133}{\code {possible-completions (M-?)}}
|
||||
\entry{insert-completions (M-*)}{133}{\code {insert-completions (M-*)}}
|
||||
\entry{menu-complete ()}{133}{\code {menu-complete ()}}
|
||||
@@ -70,9 +70,9 @@
|
||||
\entry{possible-filename-completions (C-x /)}{133}{\code {possible-filename-completions (C-x /)}}
|
||||
\entry{complete-username (M-~)}{133}{\code {complete-username (M-~)}}
|
||||
\entry{possible-username-completions (C-x ~)}{133}{\code {possible-username-completions (C-x ~)}}
|
||||
\entry{complete-variable (M-$)}{133}{\code {complete-variable (M-$)}}
|
||||
\entry{possible-variable-completions (C-x $)}{133}{\code {possible-variable-completions (C-x $)}}
|
||||
\entry{complete-hostname (M-@)}{133}{\code {complete-hostname (M-@)}}
|
||||
\entry{complete-variable (M-$)}{134}{\code {complete-variable (M-$)}}
|
||||
\entry{possible-variable-completions (C-x $)}{134}{\code {possible-variable-completions (C-x $)}}
|
||||
\entry{complete-hostname (M-@)}{134}{\code {complete-hostname (M-@)}}
|
||||
\entry{possible-hostname-completions (C-x @)}{134}{\code {possible-hostname-completions (C-x @)}}
|
||||
\entry{complete-command (M-!)}{134}{\code {complete-command (M-!)}}
|
||||
\entry{possible-command-completions (C-x !)}{134}{\code {possible-command-completions (C-x !)}}
|
||||
@@ -83,8 +83,8 @@
|
||||
\entry{end-kbd-macro (C-x ))}{134}{\code {end-kbd-macro (C-x ))}}
|
||||
\entry{call-last-kbd-macro (C-x e)}{134}{\code {call-last-kbd-macro (C-x e)}}
|
||||
\entry{print-last-kbd-macro ()}{134}{\code {print-last-kbd-macro ()}}
|
||||
\entry{re-read-init-file (C-x C-r)}{134}{\code {re-read-init-file (C-x C-r)}}
|
||||
\entry{abort (C-g)}{134}{\code {abort (C-g)}}
|
||||
\entry{re-read-init-file (C-x C-r)}{135}{\code {re-read-init-file (C-x C-r)}}
|
||||
\entry{abort (C-g)}{135}{\code {abort (C-g)}}
|
||||
\entry{do-lowercase-version (M-A, M-B, M-x, ...{})}{135}{\code {do-lowercase-version (M-A, M-B, M-\var {x}, \dots {})}}
|
||||
\entry{prefix-meta (ESC)}{135}{\code {prefix-meta (\key {ESC})}}
|
||||
\entry{undo (C-_ or C-x C-u)}{135}{\code {undo (C-_ or C-x C-u)}}
|
||||
@@ -95,7 +95,7 @@
|
||||
\entry{character-search (C-])}{135}{\code {character-search (C-])}}
|
||||
\entry{character-search-backward (M-C-])}{135}{\code {character-search-backward (M-C-])}}
|
||||
\entry{skip-csi-sequence ()}{135}{\code {skip-csi-sequence ()}}
|
||||
\entry{insert-comment (M-#)}{135}{\code {insert-comment (M-#)}}
|
||||
\entry{insert-comment (M-#)}{136}{\code {insert-comment (M-#)}}
|
||||
\entry{dump-functions ()}{136}{\code {dump-functions ()}}
|
||||
\entry{dump-variables ()}{136}{\code {dump-variables ()}}
|
||||
\entry{dump-macros ()}{136}{\code {dump-macros ()}}
|
||||
@@ -105,8 +105,8 @@
|
||||
\entry{display-shell-version (C-x C-v)}{136}{\code {display-shell-version (C-x C-v)}}
|
||||
\entry{shell-expand-line (M-C-e)}{136}{\code {shell-expand-line (M-C-e)}}
|
||||
\entry{history-expand-line (M-^)}{136}{\code {history-expand-line (M-^)}}
|
||||
\entry{magic-space ()}{136}{\code {magic-space ()}}
|
||||
\entry{alias-expand-line ()}{136}{\code {alias-expand-line ()}}
|
||||
\entry{history-and-alias-expand-line ()}{136}{\code {history-and-alias-expand-line ()}}
|
||||
\entry{insert-last-argument (M-. or M-_)}{136}{\code {insert-last-argument (M-. or M-_)}}
|
||||
\entry{magic-space ()}{137}{\code {magic-space ()}}
|
||||
\entry{alias-expand-line ()}{137}{\code {alias-expand-line ()}}
|
||||
\entry{history-and-alias-expand-line ()}{137}{\code {history-and-alias-expand-line ()}}
|
||||
\entry{insert-last-argument (M-. or M-_)}{137}{\code {insert-last-argument (M-. or M-_)}}
|
||||
\entry{edit-and-execute-command (C-x C-e)}{137}{\code {edit-and-execute-command (C-x C-e)}}
|
||||
|
||||
+16
-16
@@ -1,7 +1,7 @@
|
||||
\initial {A}
|
||||
\entry{\code {abort (C-g)}}{134}
|
||||
\entry{\code {abort (C-g)}}{135}
|
||||
\entry{\code {accept-line (Newline or Return)}}{128}
|
||||
\entry{\code {alias-expand-line ()}}{136}
|
||||
\entry{\code {alias-expand-line ()}}{137}
|
||||
\initial {B}
|
||||
\entry{\code {backward-char (C-b)}}{127}
|
||||
\entry{\code {backward-delete-char (Rubout)}}{130}
|
||||
@@ -18,13 +18,13 @@
|
||||
\entry{\code {character-search-backward (M-C-])}}{135}
|
||||
\entry{\code {clear-display (M-C-l)}}{128}
|
||||
\entry{\code {clear-screen (C-l)}}{128}
|
||||
\entry{\code {complete (\key {TAB})}}{132}
|
||||
\entry{\code {complete (\key {TAB})}}{133}
|
||||
\entry{\code {complete-command (M-!)}}{134}
|
||||
\entry{\code {complete-filename (M-/)}}{133}
|
||||
\entry{\code {complete-hostname (M-@)}}{133}
|
||||
\entry{\code {complete-hostname (M-@)}}{134}
|
||||
\entry{\code {complete-into-braces (M-{\tt \char 123})}}{134}
|
||||
\entry{\code {complete-username (M-~)}}{133}
|
||||
\entry{\code {complete-variable (M-$)}}{133}
|
||||
\entry{\code {complete-variable (M-$)}}{134}
|
||||
\entry{\code {copy-backward-word ()}}{132}
|
||||
\entry{\code {copy-forward-word ()}}{132}
|
||||
\entry{\code {copy-region-as-kill ()}}{132}
|
||||
@@ -36,7 +36,7 @@
|
||||
\entry{\code {digit-argument (\kbd {M-0}, \kbd {M-1}, \dots {} \kbd {M--})}}{132}
|
||||
\entry{\code {display-shell-version (C-x C-v)}}{136}
|
||||
\entry{\code {do-lowercase-version (M-A, M-B, M-\var {x}, \dots {})}}{135}
|
||||
\entry{\code {downcase-word (M-l)}}{130}
|
||||
\entry{\code {downcase-word (M-l)}}{131}
|
||||
\entry{\code {dump-functions ()}}{136}
|
||||
\entry{\code {dump-macros ()}}{136}
|
||||
\entry{\code {dump-variables ()}}{136}
|
||||
@@ -58,29 +58,29 @@
|
||||
\entry{\code {glob-expand-word (C-x *)}}{136}
|
||||
\entry{\code {glob-list-expansions (C-x g)}}{136}
|
||||
\initial {H}
|
||||
\entry{\code {history-and-alias-expand-line ()}}{136}
|
||||
\entry{\code {history-and-alias-expand-line ()}}{137}
|
||||
\entry{\code {history-expand-line (M-^)}}{136}
|
||||
\entry{\code {history-search-backward ()}}{129}
|
||||
\entry{\code {history-search-forward ()}}{129}
|
||||
\entry{\code {history-substring-search-backward ()}}{129}
|
||||
\entry{\code {history-substring-search-forward ()}}{129}
|
||||
\initial {I}
|
||||
\entry{\code {insert-comment (M-#)}}{135}
|
||||
\entry{\code {insert-comment (M-#)}}{136}
|
||||
\entry{\code {insert-completions (M-*)}}{133}
|
||||
\entry{\code {insert-last-argument (M-. or M-_)}}{136}
|
||||
\entry{\code {insert-last-argument (M-. or M-_)}}{137}
|
||||
\initial {K}
|
||||
\entry{\code {kill-line (C-k)}}{131}
|
||||
\entry{\code {kill-region ()}}{132}
|
||||
\entry{\code {kill-whole-line ()}}{131}
|
||||
\entry{\code {kill-word (M-d)}}{131}
|
||||
\initial {M}
|
||||
\entry{\code {magic-space ()}}{136}
|
||||
\entry{\code {magic-space ()}}{137}
|
||||
\entry{\code {menu-complete ()}}{133}
|
||||
\entry{\code {menu-complete-backward ()}}{133}
|
||||
\initial {N}
|
||||
\entry{\code {next-history (C-n)}}{128}
|
||||
\entry{\code {next-screen-line ()}}{128}
|
||||
\entry{\code {non-incremental-forward-search-history (M-n)}}{128}
|
||||
\entry{\code {non-incremental-forward-search-history (M-n)}}{129}
|
||||
\entry{\code {non-incremental-reverse-search-history (M-p)}}{128}
|
||||
\initial {O}
|
||||
\entry{\code {operate-and-get-next (C-o)}}{129}
|
||||
@@ -91,7 +91,7 @@
|
||||
\entry{\code {possible-filename-completions (C-x /)}}{133}
|
||||
\entry{\code {possible-hostname-completions (C-x @)}}{134}
|
||||
\entry{\code {possible-username-completions (C-x ~)}}{133}
|
||||
\entry{\code {possible-variable-completions (C-x $)}}{133}
|
||||
\entry{\code {possible-variable-completions (C-x $)}}{134}
|
||||
\entry{\code {prefix-meta (\key {ESC})}}{135}
|
||||
\entry{\code {previous-history (C-p)}}{128}
|
||||
\entry{\code {previous-screen-line ()}}{127}
|
||||
@@ -99,7 +99,7 @@
|
||||
\initial {Q}
|
||||
\entry{\code {quoted-insert (C-q or C-v)}}{130}
|
||||
\initial {R}
|
||||
\entry{\code {re-read-init-file (C-x C-r)}}{134}
|
||||
\entry{\code {re-read-init-file (C-x C-r)}}{135}
|
||||
\entry{\code {redraw-current-line ()}}{128}
|
||||
\entry{\code {reverse-search-history (C-r)}}{128}
|
||||
\entry{\code {revert-line (M-r)}}{135}
|
||||
@@ -111,7 +111,7 @@
|
||||
\entry{\code {shell-expand-line (M-C-e)}}{136}
|
||||
\entry{\code {shell-forward-word (M-C-f)}}{127}
|
||||
\entry{\code {shell-kill-word (M-C-d)}}{131}
|
||||
\entry{\code {shell-transpose-words (M-C-t)}}{131}
|
||||
\entry{\code {shell-transpose-words (M-C-t)}}{132}
|
||||
\entry{\code {skip-csi-sequence ()}}{135}
|
||||
\entry{\code {start-kbd-macro (C-x ()}}{134}
|
||||
\initial {T}
|
||||
@@ -123,8 +123,8 @@
|
||||
\entry{\code {universal-argument ()}}{132}
|
||||
\entry{\code {unix-filename-rubout ()}}{132}
|
||||
\entry{\code {unix-line-discard (C-u)}}{131}
|
||||
\entry{\code {unix-word-rubout (C-w)}}{131}
|
||||
\entry{\code {upcase-word (M-u)}}{130}
|
||||
\entry{\code {unix-word-rubout (C-w)}}{132}
|
||||
\entry{\code {upcase-word (M-u)}}{131}
|
||||
\initial {Y}
|
||||
\entry{\code {yank (C-y)}}{132}
|
||||
\entry{\code {yank-last-arg (M-. or M-_)}}{129}
|
||||
|
||||
+32
-23
@@ -1,9 +1,9 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<!-- This text is a brief description of the features that are present in
|
||||
the Bash shell (version 5.1, 5 June 2020).
|
||||
the Bash shell (version 5.1, 2 July 2020).
|
||||
|
||||
This is Edition 5.1, last updated 5 June 2020,
|
||||
This is Edition 5.1, last updated 2 July 2020,
|
||||
of The GNU Bash Reference Manual,
|
||||
for Bash, Version 5.1.
|
||||
|
||||
@@ -275,10 +275,10 @@ Next: <a href="#Introduction" accesskey="n" rel="next">Introduction</a>, Previou
|
||||
<span id="Bash-Features-1"></span><h1 class="top">Bash Features</h1>
|
||||
|
||||
<p>This text is a brief description of the features that are present in
|
||||
the Bash shell (version 5.1, 5 June 2020).
|
||||
the Bash shell (version 5.1, 2 July 2020).
|
||||
The Bash home page is <a href="http://www.gnu.org/software/bash/">http://www.gnu.org/software/bash/</a>.
|
||||
</p>
|
||||
<p>This is Edition 5.1, last updated 5 June 2020,
|
||||
<p>This is Edition 5.1, last updated 2 July 2020,
|
||||
of <cite>The GNU Bash Reference Manual</cite>,
|
||||
for <code>Bash</code>, Version 5.1.
|
||||
</p>
|
||||
@@ -3229,7 +3229,7 @@ by {<var>varname</var>}, the value of <var>varname</var> defines the file
|
||||
descriptor to close.
|
||||
If {<var>varname</var>} is supplied, the redirection persists beyond
|
||||
the scope of the command, allowing the shell programmer to manage
|
||||
the file descriptor himself.
|
||||
the file descriptor’s lifetime manually.
|
||||
</p>
|
||||
<p>In the following descriptions, if the file descriptor number is
|
||||
omitted, and the first character of the redirection operator is
|
||||
@@ -4322,7 +4322,7 @@ and not during the execution of a script by <code>.</code> or <code>source</code
|
||||
<p>Shift the positional parameters to the left by <var>n</var>.
|
||||
The positional parameters from <var>n</var>+1 … <code>$#</code> are
|
||||
renamed to <code>$1</code> … <code>$#</code>-<var>n</var>.
|
||||
Parameters represented by the numbers <code>$#</code> to <code>$#</code>-<var>n</var>+1
|
||||
Parameters represented by the numbers <code>$#</code> down to <code>$#</code>-<var>n</var>+1
|
||||
are unset.
|
||||
<var>n</var> must be a non-negative number less than or equal to <code>$#</code>.
|
||||
If <var>n</var> is zero or greater than <code>$#</code>, the positional parameters
|
||||
@@ -5197,12 +5197,6 @@ are used to split the line into words using the same rules the shell
|
||||
uses for expansion (described above in <a href="#Word-Splitting">Word Splitting</a>).
|
||||
The backslash character ‘<samp>\</samp>’ may be used to remove any special
|
||||
meaning for the next character read and for line continuation.
|
||||
If no names are supplied, the line read is assigned to the
|
||||
variable <code>REPLY</code>.
|
||||
The exit status is zero, unless end-of-file is encountered, <code>read</code>
|
||||
times out (in which case the status is greater than 128),
|
||||
a variable assignment error (such as assigning to a readonly variable) occurs,
|
||||
or an invalid file descriptor is supplied as the argument to <samp>-u</samp>.
|
||||
</p>
|
||||
<p>Options, if supplied, have the following meanings:
|
||||
</p>
|
||||
@@ -5290,6 +5284,15 @@ The exit status is greater than 128 if the timeout is exceeded.
|
||||
</p></dd>
|
||||
</dl>
|
||||
|
||||
<p>If no <var>name</var>s are supplied, the line read,
|
||||
without the ending delimiter but otherwise unmodified,
|
||||
is assigned to the
|
||||
variable <code>REPLY</code>.
|
||||
The exit status is zero, unless end-of-file is encountered, <code>read</code>
|
||||
times out (in which case the status is greater than 128),
|
||||
a variable assignment error (such as assigning to a readonly variable) occurs,
|
||||
or an invalid file descriptor is supplied as the argument to <samp>-u</samp>.
|
||||
</p>
|
||||
</dd>
|
||||
<dt><code>readarray</code></dt>
|
||||
<dd><span id="index-readarray"></span>
|
||||
@@ -6289,12 +6292,7 @@ by default.
|
||||
</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p>The return status when listing options is zero if all <var>optnames</var>
|
||||
are enabled, non-zero otherwise.
|
||||
When setting or unsetting options, the return status is zero unless an
|
||||
<var>optname</var> is not a valid shell option.
|
||||
</p></dd>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<hr>
|
||||
@@ -9347,6 +9345,10 @@ more randomness. If the shell compatibility level is set to 50 or
|
||||
lower, it reverts to the method from bash-5.0 and previous versions,
|
||||
so seeding the random number generator by assigning a value to
|
||||
<code>RANDOM</code> will produce the same sequence as in bash-5.0
|
||||
</li><li> If the command hash table is empty, Bash versions prior to bash-5.1
|
||||
printed an informational message to that effect, even when producing
|
||||
output that can be reused as input. Bash-5.1 suppresses that message
|
||||
when the <samp>-l</samp> option is supplied.
|
||||
</li></ul>
|
||||
</dd>
|
||||
</dl>
|
||||
@@ -10218,9 +10220,9 @@ replaced with an ellipsis when displaying possible completions.
|
||||
<dd><span id="index-completion_002dquery_002ditems"></span>
|
||||
<p>The number of possible completions that determines when the user is
|
||||
asked whether the list of possibilities should be displayed.
|
||||
If the number of possible completions is greater than this value,
|
||||
Readline will ask the user whether or not he wishes to view
|
||||
them; otherwise, they are simply listed.
|
||||
If the number of possible completions is greater than or equal to this value,
|
||||
Readline will ask whether or not the user wishes to view them;
|
||||
otherwise, they are simply listed.
|
||||
This variable must be set to an integer value greater than or equal to 0.
|
||||
A negative value means Readline should never ask.
|
||||
The default limit is <code>100</code>.
|
||||
@@ -10907,8 +10909,8 @@ set convert-meta off
|
||||
# rather than as meta-prefixed characters
|
||||
set output-meta on
|
||||
|
||||
# if there are more than 150 possible completions for
|
||||
# a word, ask the user if he wants to see all of them
|
||||
# if there are 150 or more possible completions for a word,
|
||||
# ask whether or not the user wants to see all of them
|
||||
set completion-query-items 150
|
||||
|
||||
# For FTP
|
||||
@@ -11108,6 +11110,7 @@ being entered.
|
||||
</dt>
|
||||
<dd><p>Search backward starting at the current line and moving ‘up’ through
|
||||
the history as necessary. This is an incremental search.
|
||||
This command sets the region to the matched text and activates the mark.
|
||||
</p>
|
||||
</dd>
|
||||
<dt><code>forward-search-history (C-s)</code>
|
||||
@@ -11115,6 +11118,7 @@ the history as necessary. This is an incremental search.
|
||||
</dt>
|
||||
<dd><p>Search forward starting at the current line and moving ‘down’ through
|
||||
the history as necessary. This is an incremental search.
|
||||
This command sets the region to the matched text and activates the mark.
|
||||
</p>
|
||||
</dd>
|
||||
<dt><code>non-incremental-reverse-search-history (M-p)</code>
|
||||
@@ -11281,6 +11285,11 @@ each character as if it had been read from the keyboard. The characters
|
||||
are inserted as if each one was bound to <code>self-insert</code> instead of
|
||||
executing any editing commands.
|
||||
</p>
|
||||
<p>Bracketed paste sets the region (the characters between point and the mark)
|
||||
to the inserted text. It uses the concept of an <em>active mark</em>: when the
|
||||
mark is active, Readline redisplay uses the terminal’s standout mode to
|
||||
denote the region.
|
||||
</p>
|
||||
</dd>
|
||||
<dt><code>transpose-chars (C-t)</code>
|
||||
<span id="index-transpose_002dchars-_0028C_002dt_0029"></span>
|
||||
|
||||
+151
-141
@@ -2,9 +2,9 @@ This is bashref.info, produced by makeinfo version 6.7 from
|
||||
bashref.texi.
|
||||
|
||||
This text is a brief description of the features that are present in the
|
||||
Bash shell (version 5.1, 5 June 2020).
|
||||
Bash shell (version 5.1, 2 July 2020).
|
||||
|
||||
This is Edition 5.1, last updated 5 June 2020, of 'The GNU Bash
|
||||
This is Edition 5.1, last updated 2 July 2020, of 'The GNU Bash
|
||||
Reference Manual', for 'Bash', Version 5.1.
|
||||
|
||||
Copyright (C) 1988-2018 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.1, 5 June 2020). The Bash home page is
|
||||
Bash shell (version 5.1, 2 July 2020). The Bash home page is
|
||||
<http://www.gnu.org/software/bash/>.
|
||||
|
||||
This is Edition 5.1, last updated 5 June 2020, of 'The GNU Bash
|
||||
This is Edition 5.1, last updated 2 July 2020, of 'The GNU Bash
|
||||
Reference Manual', for 'Bash', Version 5.1.
|
||||
|
||||
Bash contains features that appear in other popular shells, and some
|
||||
@@ -2322,7 +2322,7 @@ file descriptor greater than 10 and assign it to {VARNAME}. If >&- or
|
||||
<&- is preceded by {VARNAME}, the value of VARNAME defines the file
|
||||
descriptor to close. If {VARNAME} is supplied, the redirection persists
|
||||
beyond the scope of the command, allowing the shell programmer to manage
|
||||
the file descriptor himself.
|
||||
the file descriptor's lifetime manually.
|
||||
|
||||
In the following descriptions, if the file descriptor number is
|
||||
omitted, and the first character of the redirection operator is '<', the
|
||||
@@ -3202,12 +3202,12 @@ standard.
|
||||
|
||||
Shift the positional parameters to the left by N. The positional
|
||||
parameters from N+1 ... '$#' are renamed to '$1' ... '$#'-N.
|
||||
Parameters represented by the numbers '$#' to '$#'-N+1 are unset.
|
||||
N must be a non-negative number less than or equal to '$#'. If N
|
||||
is zero or greater than '$#', the positional parameters are not
|
||||
changed. If N is not supplied, it is assumed to be 1. The return
|
||||
status is zero unless N is greater than '$#' or less than zero,
|
||||
non-zero otherwise.
|
||||
Parameters represented by the numbers '$#' down to '$#'-N+1 are
|
||||
unset. N must be a non-negative number less than or equal to '$#'.
|
||||
If N is zero or greater than '$#', the positional parameters are
|
||||
not changed. If N is not supplied, it is assumed to be 1. The
|
||||
return status is zero unless N is greater than '$#' or less than
|
||||
zero, non-zero otherwise.
|
||||
|
||||
'test'
|
||||
'['
|
||||
@@ -3866,13 +3866,7 @@ standard.
|
||||
line into words using the same rules the shell uses for expansion
|
||||
(described above in *note Word Splitting::). The backslash
|
||||
character '\' may be used to remove any special meaning for the
|
||||
next character read and for line continuation. If no names are
|
||||
supplied, the line read is assigned to the variable 'REPLY'. The
|
||||
exit status is zero, unless end-of-file is encountered, 'read'
|
||||
times out (in which case the status is greater than 128), a
|
||||
variable assignment error (such as assigning to a readonly
|
||||
variable) occurs, or an invalid file descriptor is supplied as the
|
||||
argument to '-u'.
|
||||
next character read and for line continuation.
|
||||
|
||||
Options, if supplied, have the following meanings:
|
||||
|
||||
@@ -3944,6 +3938,14 @@ standard.
|
||||
'-u FD'
|
||||
Read input from file descriptor FD.
|
||||
|
||||
If no NAMEs are supplied, the line read, without the ending
|
||||
delimiter but otherwise unmodified, is assigned to the variable
|
||||
'REPLY'. The exit status is zero, unless end-of-file is
|
||||
encountered, 'read' times out (in which case the status is greater
|
||||
than 128), a variable assignment error (such as assigning to a
|
||||
readonly variable) occurs, or an invalid file descriptor is
|
||||
supplied as the argument to '-u'.
|
||||
|
||||
'readarray'
|
||||
readarray [-d DELIM] [-n COUNT] [-O ORIGIN] [-s COUNT]
|
||||
[-t] [-u FD] [-C CALLBACK] [-c QUANTUM] [ARRAY]
|
||||
@@ -4746,11 +4748,6 @@ This builtin allows you to change additional shell optional behavior.
|
||||
If set, the 'echo' builtin expands backslash-escape sequences
|
||||
by default.
|
||||
|
||||
The return status when listing options is zero if all OPTNAMES are
|
||||
enabled, non-zero otherwise. When setting or unsetting options,
|
||||
the return status is zero unless an OPTNAME is not a valid shell
|
||||
option.
|
||||
|
||||
|
||||
File: bashref.info, Node: Special Builtins, Prev: Modifying Shell Behavior, Up: Shell Builtin Commands
|
||||
|
||||
@@ -7032,6 +7029,10 @@ required for bash-5.1 and later versions.
|
||||
previous versions, so seeding the random number generator by
|
||||
assigning a value to 'RANDOM' will produce the same sequence
|
||||
as in bash-5.0
|
||||
* If the command hash table is empty, Bash versions prior to
|
||||
bash-5.1 printed an informational message to that effect, even
|
||||
when producing output that can be reused as input. Bash-5.1
|
||||
suppresses that message when the '-l' option is supplied.
|
||||
|
||||
|
||||
File: bashref.info, Node: Job Control, Next: Command Line Editing, Prev: Bash Features, Up: Top
|
||||
@@ -7698,11 +7699,11 @@ Variable Settings
|
||||
The number of possible completions that determines when the
|
||||
user is asked whether the list of possibilities should be
|
||||
displayed. If the number of possible completions is greater
|
||||
than this value, Readline will ask the user whether or not he
|
||||
wishes to view them; otherwise, they are simply listed. This
|
||||
variable must be set to an integer value greater than or equal
|
||||
to 0. A negative value means Readline should never ask. The
|
||||
default limit is '100'.
|
||||
than or equal to this value, Readline will ask whether or not
|
||||
the user wishes to view them; otherwise, they are simply
|
||||
listed. This variable must be set to an integer value greater
|
||||
than or equal to 0. A negative value means Readline should
|
||||
never ask. The default limit is '100'.
|
||||
|
||||
'convert-meta'
|
||||
If set to 'on', Readline will convert characters with the
|
||||
@@ -8229,8 +8230,8 @@ variable assignment, and conditional syntax.
|
||||
# rather than as meta-prefixed characters
|
||||
set output-meta on
|
||||
|
||||
# if there are more than 150 possible completions for
|
||||
# a word, ask the user if he wants to see all of them
|
||||
# if there are 150 or more possible completions for a word,
|
||||
# ask whether or not the user wants to see all of them
|
||||
set completion-query-items 150
|
||||
|
||||
# For FTP
|
||||
@@ -8358,10 +8359,14 @@ File: bashref.info, Node: Commands For History, Next: Commands For Text, Prev
|
||||
'reverse-search-history (C-r)'
|
||||
Search backward starting at the current line and moving 'up'
|
||||
through the history as necessary. This is an incremental search.
|
||||
This command sets the region to the matched text and activates the
|
||||
mark.
|
||||
|
||||
'forward-search-history (C-s)'
|
||||
Search forward starting at the current line and moving 'down'
|
||||
through the history as necessary. This is an incremental search.
|
||||
This command sets the region to the matched text and activates the
|
||||
mark.
|
||||
|
||||
'non-incremental-reverse-search-history (M-p)'
|
||||
Search backward starting at the current line and moving 'up'
|
||||
@@ -8469,6 +8474,11 @@ File: bashref.info, Node: Commands For Text, Next: Commands For Killing, Prev
|
||||
was bound to 'self-insert' instead of executing any editing
|
||||
commands.
|
||||
|
||||
Bracketed paste sets the region (the characters between point and
|
||||
the mark) to the inserted text. It uses the concept of an _active
|
||||
mark_: when the mark is active, Readline redisplay uses the
|
||||
terminal's standout mode to denote the region.
|
||||
|
||||
'transpose-chars (C-t)'
|
||||
Drag the character before the cursor forward over the character at
|
||||
the cursor, moving the cursor forward as well. If the insertion
|
||||
@@ -11294,7 +11304,7 @@ D.1 Index of Shell Builtin Commands
|
||||
* pwd: Bourne Shell Builtins.
|
||||
(line 207)
|
||||
* read: Bash Builtins. (line 472)
|
||||
* readarray: Bash Builtins. (line 566)
|
||||
* readarray: Bash Builtins. (line 568)
|
||||
* readonly: Bourne Shell Builtins.
|
||||
(line 217)
|
||||
* return: Bourne Shell Builtins.
|
||||
@@ -11303,7 +11313,7 @@ D.1 Index of Shell Builtin Commands
|
||||
* shift: Bourne Shell Builtins.
|
||||
(line 257)
|
||||
* shopt: The Shopt Builtin. (line 9)
|
||||
* source: Bash Builtins. (line 575)
|
||||
* source: Bash Builtins. (line 577)
|
||||
* suspend: Job Control Builtins.
|
||||
(line 113)
|
||||
* test: Bourne Shell Builtins.
|
||||
@@ -11312,12 +11322,12 @@ D.1 Index of Shell Builtin Commands
|
||||
(line 349)
|
||||
* trap: Bourne Shell Builtins.
|
||||
(line 355)
|
||||
* type: Bash Builtins. (line 580)
|
||||
* typeset: Bash Builtins. (line 612)
|
||||
* ulimit: Bash Builtins. (line 618)
|
||||
* type: Bash Builtins. (line 582)
|
||||
* typeset: Bash Builtins. (line 614)
|
||||
* ulimit: Bash Builtins. (line 620)
|
||||
* umask: Bourne Shell Builtins.
|
||||
(line 404)
|
||||
* unalias: Bash Builtins. (line 721)
|
||||
* unalias: Bash Builtins. (line 723)
|
||||
* unset: Bourne Shell Builtins.
|
||||
(line 422)
|
||||
* wait: Job Control Builtins.
|
||||
@@ -11621,7 +11631,7 @@ D.4 Function Index
|
||||
* beginning-of-line (C-a): Commands For Moving. (line 6)
|
||||
* bracketed-paste-begin (): Commands For Text. (line 33)
|
||||
* call-last-kbd-macro (C-x e): Keyboard Macros. (line 13)
|
||||
* capitalize-word (M-c): Commands For Text. (line 61)
|
||||
* capitalize-word (M-c): Commands For Text. (line 66)
|
||||
* character-search (C-]): Miscellaneous Commands.
|
||||
(line 42)
|
||||
* character-search-backward (M-C-]): Miscellaneous Commands.
|
||||
@@ -11660,7 +11670,7 @@ D.4 Function Index
|
||||
(line 110)
|
||||
* do-lowercase-version (M-A, M-B, M-X, ...): Miscellaneous Commands.
|
||||
(line 14)
|
||||
* downcase-word (M-l): Commands For Text. (line 57)
|
||||
* downcase-word (M-l): Commands For Text. (line 62)
|
||||
* dump-functions (): Miscellaneous Commands.
|
||||
(line 74)
|
||||
* dump-macros (): Miscellaneous Commands.
|
||||
@@ -11681,7 +11691,7 @@ D.4 Function Index
|
||||
* forward-backward-delete-char (): Commands For Text. (line 21)
|
||||
* forward-char (C-f): Commands For Moving. (line 12)
|
||||
* forward-search-history (C-s): Commands For History.
|
||||
(line 31)
|
||||
(line 33)
|
||||
* forward-word (M-f): Commands For Moving. (line 18)
|
||||
* glob-complete-word (M-g): Miscellaneous Commands.
|
||||
(line 92)
|
||||
@@ -11694,13 +11704,13 @@ D.4 Function Index
|
||||
* history-expand-line (M-^): Miscellaneous Commands.
|
||||
(line 118)
|
||||
* history-search-backward (): Commands For History.
|
||||
(line 53)
|
||||
(line 57)
|
||||
* history-search-forward (): Commands For History.
|
||||
(line 47)
|
||||
(line 51)
|
||||
* history-substring-search-backward (): Commands For History.
|
||||
(line 65)
|
||||
(line 69)
|
||||
* history-substring-search-forward (): Commands For History.
|
||||
(line 59)
|
||||
(line 63)
|
||||
* insert-comment (M-#): Miscellaneous Commands.
|
||||
(line 61)
|
||||
* insert-completions (M-*): Commands For Completion.
|
||||
@@ -11725,12 +11735,12 @@ D.4 Function Index
|
||||
(line 17)
|
||||
* next-screen-line (): Commands For Moving. (line 41)
|
||||
* non-incremental-forward-search-history (M-n): Commands For History.
|
||||
(line 41)
|
||||
(line 45)
|
||||
* non-incremental-reverse-search-history (M-p): Commands For History.
|
||||
(line 35)
|
||||
(line 39)
|
||||
* operate-and-get-next (C-o): Commands For History.
|
||||
(line 92)
|
||||
* overwrite-mode (): Commands For Text. (line 65)
|
||||
(line 96)
|
||||
* overwrite-mode (): Commands For Text. (line 70)
|
||||
* possible-command-completions (C-x !): Commands For Completion.
|
||||
(line 86)
|
||||
* possible-completions (M-?): Commands For Completion.
|
||||
@@ -11775,8 +11785,8 @@ D.4 Function Index
|
||||
* start-kbd-macro (C-x (): Keyboard Macros. (line 6)
|
||||
* tilde-expand (M-&): Miscellaneous Commands.
|
||||
(line 30)
|
||||
* transpose-chars (C-t): Commands For Text. (line 42)
|
||||
* transpose-words (M-t): Commands For Text. (line 48)
|
||||
* transpose-chars (C-t): Commands For Text. (line 47)
|
||||
* transpose-words (M-t): Commands For Text. (line 53)
|
||||
* undo (C-_ or C-x C-u): Miscellaneous Commands.
|
||||
(line 23)
|
||||
* universal-argument (): Numeric Arguments. (line 10)
|
||||
@@ -11786,13 +11796,13 @@ D.4 Function Index
|
||||
(line 12)
|
||||
* unix-word-rubout (C-w): Commands For Killing.
|
||||
(line 44)
|
||||
* upcase-word (M-u): Commands For Text. (line 53)
|
||||
* upcase-word (M-u): Commands For Text. (line 58)
|
||||
* yank (C-y): Commands For Killing.
|
||||
(line 75)
|
||||
* yank-last-arg (M-. or M-_): Commands For History.
|
||||
(line 80)
|
||||
(line 84)
|
||||
* yank-nth-arg (M-C-y): Commands For History.
|
||||
(line 71)
|
||||
(line 75)
|
||||
* yank-pop (M-y): Commands For Killing.
|
||||
(line 78)
|
||||
|
||||
@@ -12005,95 +12015,95 @@ Node: Filename Expansion93114
|
||||
Node: Pattern Matching95663
|
||||
Node: Quote Removal99649
|
||||
Node: Redirections99944
|
||||
Node: Executing Commands109502
|
||||
Node: Simple Command Expansion110172
|
||||
Node: Command Search and Execution112126
|
||||
Node: Command Execution Environment114502
|
||||
Node: Environment117486
|
||||
Node: Exit Status119145
|
||||
Node: Signals120815
|
||||
Node: Shell Scripts122782
|
||||
Node: Shell Builtin Commands125794
|
||||
Node: Bourne Shell Builtins127832
|
||||
Node: Bash Builtins148756
|
||||
Node: Modifying Shell Behavior178486
|
||||
Node: The Set Builtin178831
|
||||
Node: The Shopt Builtin189244
|
||||
Node: Special Builtins204380
|
||||
Node: Shell Variables205359
|
||||
Node: Bourne Shell Variables205796
|
||||
Node: Bash Variables207900
|
||||
Node: Bash Features240478
|
||||
Node: Invoking Bash241491
|
||||
Node: Bash Startup Files247504
|
||||
Node: Interactive Shells252607
|
||||
Node: What is an Interactive Shell?253017
|
||||
Node: Is this Shell Interactive?253666
|
||||
Node: Interactive Shell Behavior254481
|
||||
Node: Bash Conditional Expressions257995
|
||||
Node: Shell Arithmetic262572
|
||||
Node: Aliases265512
|
||||
Node: Arrays268132
|
||||
Node: The Directory Stack274141
|
||||
Node: Directory Stack Builtins274925
|
||||
Node: Controlling the Prompt277893
|
||||
Node: The Restricted Shell280843
|
||||
Node: Bash POSIX Mode283437
|
||||
Node: Shell Compatibility Mode294473
|
||||
Node: Job Control300848
|
||||
Node: Job Control Basics301308
|
||||
Node: Job Control Builtins306304
|
||||
Node: Job Control Variables311704
|
||||
Node: Command Line Editing312860
|
||||
Node: Introduction and Notation314531
|
||||
Node: Readline Interaction316154
|
||||
Node: Readline Bare Essentials317345
|
||||
Node: Readline Movement Commands319128
|
||||
Node: Readline Killing Commands320088
|
||||
Node: Readline Arguments322006
|
||||
Node: Searching323050
|
||||
Node: Readline Init File325236
|
||||
Node: Readline Init File Syntax326495
|
||||
Node: Conditional Init Constructs347025
|
||||
Node: Sample Init File351221
|
||||
Node: Bindable Readline Commands354338
|
||||
Node: Commands For Moving355542
|
||||
Node: Commands For History357593
|
||||
Node: Commands For Text362220
|
||||
Node: Commands For Killing365608
|
||||
Node: Numeric Arguments368423
|
||||
Node: Commands For Completion369562
|
||||
Node: Keyboard Macros373753
|
||||
Node: Miscellaneous Commands374440
|
||||
Node: Readline vi Mode380124
|
||||
Node: Programmable Completion381031
|
||||
Node: Programmable Completion Builtins388811
|
||||
Node: A Programmable Completion Example399506
|
||||
Node: Using History Interactively404753
|
||||
Node: Bash History Facilities405437
|
||||
Node: Bash History Builtins408442
|
||||
Node: History Interaction413171
|
||||
Node: Event Designators416791
|
||||
Node: Word Designators418145
|
||||
Node: Modifiers419905
|
||||
Node: Installing Bash421716
|
||||
Node: Basic Installation422853
|
||||
Node: Compilers and Options426111
|
||||
Node: Compiling For Multiple Architectures426852
|
||||
Node: Installation Names428545
|
||||
Node: Specifying the System Type429363
|
||||
Node: Sharing Defaults430079
|
||||
Node: Operation Controls430752
|
||||
Node: Optional Features431710
|
||||
Node: Reporting Bugs442228
|
||||
Node: Major Differences From The Bourne Shell443422
|
||||
Node: GNU Free Documentation License460274
|
||||
Node: Indexes485451
|
||||
Node: Builtin Index485905
|
||||
Node: Reserved Word Index492732
|
||||
Node: Variable Index495180
|
||||
Node: Function Index511077
|
||||
Node: Concept Index524587
|
||||
Node: Executing Commands109514
|
||||
Node: Simple Command Expansion110184
|
||||
Node: Command Search and Execution112138
|
||||
Node: Command Execution Environment114514
|
||||
Node: Environment117498
|
||||
Node: Exit Status119157
|
||||
Node: Signals120827
|
||||
Node: Shell Scripts122794
|
||||
Node: Shell Builtin Commands125806
|
||||
Node: Bourne Shell Builtins127844
|
||||
Node: Bash Builtins148773
|
||||
Node: Modifying Shell Behavior178564
|
||||
Node: The Set Builtin178909
|
||||
Node: The Shopt Builtin189322
|
||||
Node: Special Builtins204232
|
||||
Node: Shell Variables205211
|
||||
Node: Bourne Shell Variables205648
|
||||
Node: Bash Variables207752
|
||||
Node: Bash Features240330
|
||||
Node: Invoking Bash241343
|
||||
Node: Bash Startup Files247356
|
||||
Node: Interactive Shells252459
|
||||
Node: What is an Interactive Shell?252869
|
||||
Node: Is this Shell Interactive?253518
|
||||
Node: Interactive Shell Behavior254333
|
||||
Node: Bash Conditional Expressions257847
|
||||
Node: Shell Arithmetic262424
|
||||
Node: Aliases265364
|
||||
Node: Arrays267984
|
||||
Node: The Directory Stack273993
|
||||
Node: Directory Stack Builtins274777
|
||||
Node: Controlling the Prompt277745
|
||||
Node: The Restricted Shell280695
|
||||
Node: Bash POSIX Mode283289
|
||||
Node: Shell Compatibility Mode294325
|
||||
Node: Job Control300981
|
||||
Node: Job Control Basics301441
|
||||
Node: Job Control Builtins306437
|
||||
Node: Job Control Variables311837
|
||||
Node: Command Line Editing312993
|
||||
Node: Introduction and Notation314664
|
||||
Node: Readline Interaction316287
|
||||
Node: Readline Bare Essentials317478
|
||||
Node: Readline Movement Commands319261
|
||||
Node: Readline Killing Commands320221
|
||||
Node: Readline Arguments322139
|
||||
Node: Searching323183
|
||||
Node: Readline Init File325369
|
||||
Node: Readline Init File Syntax326628
|
||||
Node: Conditional Init Constructs347167
|
||||
Node: Sample Init File351363
|
||||
Node: Bindable Readline Commands354487
|
||||
Node: Commands For Moving355691
|
||||
Node: Commands For History357742
|
||||
Node: Commands For Text362535
|
||||
Node: Commands For Killing366184
|
||||
Node: Numeric Arguments368999
|
||||
Node: Commands For Completion370138
|
||||
Node: Keyboard Macros374329
|
||||
Node: Miscellaneous Commands375016
|
||||
Node: Readline vi Mode380700
|
||||
Node: Programmable Completion381607
|
||||
Node: Programmable Completion Builtins389387
|
||||
Node: A Programmable Completion Example400082
|
||||
Node: Using History Interactively405329
|
||||
Node: Bash History Facilities406013
|
||||
Node: Bash History Builtins409018
|
||||
Node: History Interaction413747
|
||||
Node: Event Designators417367
|
||||
Node: Word Designators418721
|
||||
Node: Modifiers420481
|
||||
Node: Installing Bash422292
|
||||
Node: Basic Installation423429
|
||||
Node: Compilers and Options426687
|
||||
Node: Compiling For Multiple Architectures427428
|
||||
Node: Installation Names429121
|
||||
Node: Specifying the System Type429939
|
||||
Node: Sharing Defaults430655
|
||||
Node: Operation Controls431328
|
||||
Node: Optional Features432286
|
||||
Node: Reporting Bugs442804
|
||||
Node: Major Differences From The Bourne Shell443998
|
||||
Node: GNU Free Documentation License460850
|
||||
Node: Indexes486027
|
||||
Node: Builtin Index486481
|
||||
Node: Reserved Word Index493308
|
||||
Node: Variable Index495756
|
||||
Node: Function Index511653
|
||||
Node: Concept Index525163
|
||||
|
||||
End Tag Table
|
||||
|
||||
|
||||
+34
-34
@@ -1,10 +1,10 @@
|
||||
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/MacPorts 2019.50896_2) (preloaded format=pdfetex 2019.11.6) 10 JUN 2020 12:00
|
||||
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/MacPorts 2019.50896_2) (preloaded format=pdfetex 2019.11.6) 17 JUL 2020 15:12
|
||||
entering extended mode
|
||||
restricted \write18 enabled.
|
||||
file:line:error style messages enabled.
|
||||
%&-line parsing enabled.
|
||||
**\nonstopmode \input /Users/chet/src/bash/src/doc/bashref.texi
|
||||
(/Users/chet/src/bash/src/doc/bashref.texi
|
||||
**\nonstopmode \input /usr/src/local/chet/src/bash/src/doc/bashref.texi
|
||||
(/usr/src/local/chet/src/bash/src/doc/bashref.texi
|
||||
(/Users/chet/src/bash/src/doc/texinfo.tex
|
||||
Loading texinfo [version 2015-11-22.14]:
|
||||
\outerhsize=\dimen16
|
||||
@@ -234,8 +234,8 @@ Chapter 7 [106] [107] [108] [109]
|
||||
texinfo.tex: doing @include of rluser.texi
|
||||
|
||||
|
||||
(/Users/chet/src/bash/src/lib/readline/doc/rluser.texi Chapter 8 [110] [111]
|
||||
[112] [113] [114] [115] [116] [117] [118] [119] [120]
|
||||
(/usr/src/local/chet/src/bash/src/lib/readline/doc/rluser.texi Chapter 8
|
||||
[110] [111] [112] [113] [114] [115] [116] [117] [118] [119] [120]
|
||||
Underfull \hbox (badness 7540) in paragraph at lines 813--819
|
||||
[]@textrm In the ex-am-ple above, @textttsl C-u[] @textrm is bound to the func
|
||||
-tion
|
||||
@@ -280,7 +280,7 @@ gnored[]
|
||||
|
||||
[127] [128] [129] [130] [131] [132] [133] [134] [135] [136]
|
||||
[137] [138] [139]
|
||||
Overfull \hbox (15.27109pt too wide) in paragraph at lines 2051--2051
|
||||
Overfull \hbox (15.27109pt too wide) in paragraph at lines 2058--2058
|
||||
[]@texttt complete [-abcdefgjksuv] [-o @textttsl comp-option@texttt ] [-DEI] [
|
||||
-A @textttsl ac-tion@texttt ] [-
|
||||
|
||||
@@ -296,41 +296,41 @@ Overfull \hbox (15.27109pt too wide) in paragraph at lines 2051--2051
|
||||
texinfo.tex: doing @include of hsuser.texi
|
||||
|
||||
|
||||
(/Users/chet/src/bash/src/lib/readline/doc/hsuser.texi Chapter 9 [145] [146]
|
||||
[147] [148] [149] [150]) Chapter 10 [151] [152] [153] [154] [155] [156]
|
||||
[157] [158] Appendix A [159] Appendix B [160] [161] [162] [163] [164] [165]
|
||||
Appendix C [166]
|
||||
(/usr/src/local/chet/src/bash/src/lib/readline/doc/hsuser.texi Chapter 9
|
||||
[145] [146] [147] [148] [149] [150]) Chapter 10 [151] [152] [153] [154]
|
||||
[155] [156] [157] [158] Appendix A [159] Appendix B [160] [161] [162] [163]
|
||||
[164] [165] Appendix C [166]
|
||||
texinfo.tex: doing @include of fdl.texi
|
||||
|
||||
(/Users/chet/src/bash/src/doc/fdl.texi [167] [168] [169]
|
||||
[170] [171] [172] [173]) Appendix D [174] [175] [176] [177] [178] [179]
|
||||
[180] [181] [182] [183] )
|
||||
(/Users/chet/src/bash/src/doc/fdl.texi [167]
|
||||
[168] [169] [170] [171] [172] [173]) Appendix D [174] [175] [176] [177]
|
||||
[178] [179] [180] [181] [182] [183] )
|
||||
Here is how much of TeX's memory you used:
|
||||
4087 strings out of 497098
|
||||
47293 string characters out of 6206772
|
||||
4088 strings out of 497098
|
||||
47386 string characters out of 6206772
|
||||
139199 words of memory out of 5000000
|
||||
4863 multiletter control sequences out of 15000+600000
|
||||
34315 words of font info for 116 fonts, out of 8000000 for 9000
|
||||
51 hyphenation exceptions out of 8191
|
||||
16i,6n,16p,335b,978s stack positions out of 5000i,500n,10000p,200000b,80000s
|
||||
{/opt/local/share/texmf-texlive/fonts/enc/dvips/cm-sup
|
||||
er/cm-super-t1.enc}</opt/local/share/texmf-texlive/fonts/type1/public/amsfonts/
|
||||
cm/cmbx12.pfb></opt/local/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cm
|
||||
csc10.pfb></opt/local/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmmi10
|
||||
.pfb></opt/local/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmmi12.pfb>
|
||||
</opt/local/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmmi9.pfb></opt/
|
||||
local/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmr10.pfb></opt/local/
|
||||
share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmr9.pfb></opt/local/share/t
|
||||
exmf-texlive/fonts/type1/public/amsfonts/cm/cmsl10.pfb></opt/local/share/texmf-
|
||||
texlive/fonts/type1/public/amsfonts/cm/cmsltt10.pfb></opt/local/share/texmf-tex
|
||||
live/fonts/type1/public/amsfonts/cm/cmsy10.pfb></opt/local/share/texmf-texlive/
|
||||
fonts/type1/public/amsfonts/cm/cmti10.pfb></opt/local/share/texmf-texlive/fonts
|
||||
/type1/public/amsfonts/cm/cmtt10.pfb></opt/local/share/texmf-texlive/fonts/type
|
||||
1/public/amsfonts/cm/cmtt12.pfb></opt/local/share/texmf-texlive/fonts/type1/pub
|
||||
lic/amsfonts/cm/cmtt9.pfb></opt/local/share/texmf-texlive/fonts/type1/public/cm
|
||||
-super/sfrm1095.pfb></opt/local/share/texmf-texlive/fonts/type1/public/cm-super
|
||||
/sfrm1440.pfb>
|
||||
Output written on bashref.pdf (189 pages, 767679 bytes).
|
||||
16i,6n,16p,343b,978s stack positions out of 5000i,500n,10000p,200000b,80000s
|
||||
{/opt/local/share/texmf-texlive/fonts/enc/
|
||||
dvips/cm-super/cm-super-t1.enc}</opt/local/share/texmf-texlive/fonts/type1/publ
|
||||
ic/amsfonts/cm/cmbx12.pfb></opt/local/share/texmf-texlive/fonts/type1/public/am
|
||||
sfonts/cm/cmcsc10.pfb></opt/local/share/texmf-texlive/fonts/type1/public/amsfon
|
||||
ts/cm/cmmi10.pfb></opt/local/share/texmf-texlive/fonts/type1/public/amsfonts/cm
|
||||
/cmmi12.pfb></opt/local/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmmi
|
||||
9.pfb></opt/local/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmr10.pfb>
|
||||
</opt/local/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmr9.pfb></opt/l
|
||||
ocal/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmsl10.pfb></opt/local/
|
||||
share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmsltt10.pfb></opt/local/sha
|
||||
re/texmf-texlive/fonts/type1/public/amsfonts/cm/cmsy10.pfb></opt/local/share/te
|
||||
xmf-texlive/fonts/type1/public/amsfonts/cm/cmti10.pfb></opt/local/share/texmf-t
|
||||
exlive/fonts/type1/public/amsfonts/cm/cmtt10.pfb></opt/local/share/texmf-texliv
|
||||
e/fonts/type1/public/amsfonts/cm/cmtt12.pfb></opt/local/share/texmf-texlive/fon
|
||||
ts/type1/public/amsfonts/cm/cmtt9.pfb></opt/local/share/texmf-texlive/fonts/typ
|
||||
e1/public/cm-super/sfrm1095.pfb></opt/local/share/texmf-texlive/fonts/type1/pub
|
||||
lic/cm-super/sfrm1440.pfb>
|
||||
Output written on bashref.pdf (189 pages, 768833 bytes).
|
||||
PDF statistics:
|
||||
2680 PDF objects out of 2984 (max. 8388607)
|
||||
2445 compressed objects within 25 object streams
|
||||
|
||||
Binary file not shown.
+1264
-1239
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -106,9 +106,9 @@
|
||||
@numsubsecentry{Commands For Changing Text}{8.4.3}{Commands For Text}{130}
|
||||
@numsubsecentry{Killing And Yanking}{8.4.4}{Commands For Killing}{131}
|
||||
@numsubsecentry{Specifying Numeric Arguments}{8.4.5}{Numeric Arguments}{132}
|
||||
@numsubsecentry{Letting Readline Type For You}{8.4.6}{Commands For Completion}{132}
|
||||
@numsubsecentry{Letting Readline Type For You}{8.4.6}{Commands For Completion}{133}
|
||||
@numsubsecentry{Keyboard Macros}{8.4.7}{Keyboard Macros}{134}
|
||||
@numsubsecentry{Some Miscellaneous Commands}{8.4.8}{Miscellaneous Commands}{134}
|
||||
@numsubsecentry{Some Miscellaneous Commands}{8.4.8}{Miscellaneous Commands}{135}
|
||||
@numsecentry{Readline vi Mode}{8.5}{Readline vi Mode}{137}
|
||||
@numsecentry{Programmable Completion}{8.6}{Programmable Completion}{137}
|
||||
@numsecentry{Programmable Completion Builtins}{8.7}{Programmable Completion Builtins}{139}
|
||||
|
||||
+437
-431
File diff suppressed because it is too large
Load Diff
+1060
-1051
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -1,6 +1,6 @@
|
||||
%!PS-Adobe-3.0
|
||||
%%Creator: groff version 1.22.4
|
||||
%%CreationDate: Wed Jun 10 12:00:37 2020
|
||||
%%CreationDate: Fri Jul 17 15:12:32 2020
|
||||
%%DocumentNeededResources: font Times-Roman
|
||||
%%+ font Times-Bold
|
||||
%%DocumentSuppliedResources: procset grops 1.22 4
|
||||
|
||||
@@ -364,11 +364,7 @@ reset_shell_flags ()
|
||||
#endif
|
||||
|
||||
#if defined (BANG_HISTORY)
|
||||
# if defined (STRICT_POSIX)
|
||||
history_expansion = 0;
|
||||
# else
|
||||
history_expansion = 1;
|
||||
# endif /* STRICT_POSIX */
|
||||
histexp_flag = 0;
|
||||
#endif
|
||||
|
||||
#if defined (BRACE_EXPANSION)
|
||||
|
||||
@@ -425,7 +425,8 @@ legal_alias_name (string, flags)
|
||||
|
||||
/* Returns non-zero if STRING is an assignment statement. The returned value
|
||||
is the index of the `=' sign. If FLAGS&1 we are expecting a compound assignment
|
||||
and don't want an array subscript before the `='. */
|
||||
and require an array subscript before the `=' to denote an assignment
|
||||
statement. */
|
||||
int
|
||||
assignment (string, flags)
|
||||
const char *string;
|
||||
@@ -437,7 +438,17 @@ assignment (string, flags)
|
||||
c = string[indx = 0];
|
||||
|
||||
#if defined (ARRAY_VARS)
|
||||
if ((legal_variable_starter (c) == 0) && ((flags&1) == 0 || c != '[')) /* ] */
|
||||
/* If parser_state includes PST_COMPASSIGN, FLAGS will include 1, so we are
|
||||
parsing the contents of a compound assignment. If parser_state includes
|
||||
PST_REPARSE, we are in the middle of an assignment statement and breaking
|
||||
the words between the parens into words and assignment statements, but
|
||||
we don't need to check for that right now. Within a compound assignment,
|
||||
the subscript is required to make the word an assignment statement. If
|
||||
we don't have a subscript, even if the word is a valid assignment
|
||||
statement otherwise, we don't want to treat it as one. */
|
||||
if ((flags & 1) && c != '[') /* ] */
|
||||
return (0);
|
||||
else if ((flags & 1) == 0 && legal_variable_starter (c) == 0)
|
||||
#else
|
||||
if (legal_variable_starter (c) == 0)
|
||||
#endif
|
||||
|
||||
@@ -1433,9 +1433,13 @@ By default, this command is unbound.
|
||||
|
||||
@item kill-line (C-k)
|
||||
Kill the text from point to the end of the line.
|
||||
With a negative numeric argument, kill backward from the cursor to the
|
||||
beginning of the current line.
|
||||
|
||||
@item backward-kill-line (C-x Rubout)
|
||||
Kill backward from the cursor to the beginning of the current line.
|
||||
With a negative numeric argument, kill forward from the cursor to the
|
||||
end of the current line.
|
||||
|
||||
@item unix-line-discard (C-u)
|
||||
Kill backward from the cursor to the beginning of the current line.
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
BUILD_DIR=/usr/local/build/bash/bash-current
|
||||
BUILD_DIR=/usr/local/build/chet/bash/bash-current
|
||||
THIS_SH=$BUILD_DIR/bash
|
||||
PATH=$PATH:$BUILD_DIR
|
||||
|
||||
|
||||
+4
-1
@@ -5216,7 +5216,10 @@ push_posix_tempvar_internal (var, isbltin)
|
||||
v = 0;
|
||||
|
||||
if (local_p (var) && STREQ (var->name, "-"))
|
||||
set_current_options (value_cell (var));
|
||||
{
|
||||
set_current_options (value_cell (var));
|
||||
set_shellopts ();
|
||||
}
|
||||
/* This takes variable assignments preceding special builtins that can execute
|
||||
multiple commands (source, eval, etc.) and performs the equivalent of
|
||||
an assignment statement to modify the closest enclosing variable (the
|
||||
|
||||
Reference in New Issue
Block a user