mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-06 11:50:49 +02:00
commit bash-20080410 snapshot
This commit is contained in:
+256
-213
@@ -1,10 +1,10 @@
|
||||
This is bashref.info, produced by makeinfo version 4.8 from
|
||||
/Users/chet/src/bash/src/doc/bashref.texi.
|
||||
This is bashref.info, produced by makeinfo version 4.11 from
|
||||
/usr/homes/chet/src/bash/src/doc/bashref.texi.
|
||||
|
||||
This text is a brief description of the features that are present in
|
||||
the Bash shell (version 3.2, 22 February 2008).
|
||||
This text is a brief description of the features that are present in
|
||||
the Bash shell (version 3.2, 5 April 2008).
|
||||
|
||||
This is Edition 3.2, last updated 22 February 2008, of `The GNU Bash
|
||||
This is Edition 3.2, last updated 5 April 2008, of `The GNU Bash
|
||||
Reference Manual', for `Bash', Version 3.2.
|
||||
|
||||
Copyright (C) 1988-2007 Free Software Foundation, Inc.
|
||||
@@ -38,9 +38,9 @@ Bash Features
|
||||
*************
|
||||
|
||||
This text is a brief description of the features that are present in
|
||||
the Bash shell (version 3.2, 22 February 2008).
|
||||
the Bash shell (version 3.2, 5 April 2008).
|
||||
|
||||
This is Edition 3.2, last updated 22 February 2008, of `The GNU Bash
|
||||
This is Edition 3.2, last updated 5 April 2008, of `The GNU Bash
|
||||
Reference Manual', for `Bash', Version 3.2.
|
||||
|
||||
Bash contains features that appear in other popular shells, and some
|
||||
@@ -322,7 +322,7 @@ reads and executes a command. Basically, the shell does the following:
|
||||
Invoking Bash::), or from the user's terminal.
|
||||
|
||||
2. Breaks the input into words and operators, obeying the quoting
|
||||
rules described in *Note Quoting::. These tokens are separated by
|
||||
rules described in *note Quoting::. These tokens are separated by
|
||||
`metacharacters'. Alias expansion is performed by this step
|
||||
(*note Aliases::).
|
||||
|
||||
@@ -616,8 +616,11 @@ redirected from `/dev/null'.
|
||||
waits for each command to terminate in turn. The return status is the
|
||||
exit status of the last command executed.
|
||||
|
||||
The control operators `&&' and `||' denote AND lists and OR lists,
|
||||
respectively. An AND list has the form
|
||||
AND and OR lists are sequences of one or more pipelines separated by
|
||||
the control operators `&&' and `||', respectively. AND and OR lists
|
||||
are executed with left associativity.
|
||||
|
||||
An AND list has the form
|
||||
COMMAND1 && COMMAND2
|
||||
|
||||
COMMAND2 is executed if, and only if, COMMAND1 returns an exit status
|
||||
@@ -746,7 +749,7 @@ File: bashref.info, Node: Conditional Constructs, Next: Command Grouping, Pre
|
||||
|
||||
`case' will selectively execute the COMMAND-LIST corresponding to
|
||||
the first PATTERN that matches WORD. If the shell option
|
||||
`nocasematch' (see the description of `shopt' in *Note The Shopt
|
||||
`nocasematch' (see the description of `shopt' in *note The Shopt
|
||||
Builtin::) is enabled, the match is performed without regard to
|
||||
the case of alphabetic characters. The `|' is used to separate
|
||||
multiple patterns, and the `)' operator terminates a pattern list.
|
||||
@@ -824,7 +827,7 @@ File: bashref.info, Node: Conditional Constructs, Next: Command Grouping, Pre
|
||||
|
||||
Return a status of 0 or 1 depending on the evaluation of the
|
||||
conditional expression EXPRESSION. Expressions are composed of
|
||||
the primaries described below in *Note Bash Conditional
|
||||
the primaries described below in *note Bash Conditional
|
||||
Expressions::. Word splitting and filename expansion are not
|
||||
performed on the words between the `[[' and `]]'; tilde expansion,
|
||||
parameter and variable expansion, arithmetic expansion, command
|
||||
@@ -834,9 +837,9 @@ File: bashref.info, Node: Conditional Constructs, Next: Command Grouping, Pre
|
||||
|
||||
When the `==' and `!=' operators are used, the string to the right
|
||||
of the operator is considered a pattern and matched according to
|
||||
the rules described below in *Note Pattern Matching::. If the
|
||||
the rules described below in *note Pattern Matching::. If the
|
||||
shell option `nocasematch' (see the description of `shopt' in
|
||||
*Note The Shopt Builtin::) is enabled, the match is performed
|
||||
*note The Shopt Builtin::) is enabled, the match is performed
|
||||
without regard to the case of alphabetic characters. The return
|
||||
value is 0 if the string matches (`==') or does not match
|
||||
(`!=')the pattern, and 1 otherwise. Any part of the pattern may
|
||||
@@ -849,7 +852,7 @@ File: bashref.info, Node: Conditional Constructs, Next: Command Grouping, Pre
|
||||
the string matches the pattern, and 1 otherwise. If the regular
|
||||
expression is syntactically incorrect, the conditional
|
||||
expression's return value is 2. If the shell option `nocasematch'
|
||||
(see the description of `shopt' in *Note The Shopt Builtin::) is
|
||||
(see the description of `shopt' in *note The Shopt Builtin::) is
|
||||
enabled, the match is performed without regard to the case of
|
||||
alphabetic characters. Any part of the pattern may be quoted to
|
||||
force it to be matched as a string. Substrings matched by
|
||||
@@ -1016,7 +1019,7 @@ File: bashref.info, Node: Shell Parameters, Next: Shell Expansions, Prev: She
|
||||
number, or one of the special characters listed below. A VARIABLE is a
|
||||
parameter denoted by a `name'. A variable has a VALUE and zero or more
|
||||
ATTRIBUTES. Attributes are assigned using the `declare' builtin command
|
||||
(see the description of the `declare' builtin in *Note Bash Builtins::).
|
||||
(see the description of the `declare' builtin in *note Bash Builtins::).
|
||||
|
||||
A parameter is set if it has been assigned a value. The null string
|
||||
is a valid value. Once a variable is set, it may be unset only by using
|
||||
@@ -1595,7 +1598,7 @@ matched explicitly, unless the shell option `dotglob' is set. When
|
||||
matching a file name, the slash character must always be matched
|
||||
explicitly. In other cases, the `.' character is not treated specially.
|
||||
|
||||
See the description of `shopt' in *Note The Shopt Builtin::, for a
|
||||
See the description of `shopt' in *note The Shopt Builtin::, for a
|
||||
description of the `nocaseglob', `nullglob', `failglob', and `dotglob'
|
||||
options.
|
||||
|
||||
@@ -1977,7 +1980,7 @@ taken.
|
||||
|
||||
1. If the command name contains no slashes, the shell attempts to
|
||||
locate it. If there exists a shell function by that name, that
|
||||
function is invoked as described in *Note Shell Functions::.
|
||||
function is invoked as described in *note Shell Functions::.
|
||||
|
||||
2. If the name does not match a function, the shell searches for it
|
||||
in the list of shell builtins. If a match is found, that builtin
|
||||
@@ -1988,7 +1991,7 @@ taken.
|
||||
directory containing an executable file by that name. Bash uses a
|
||||
hash table to remember the full pathnames of executable files to
|
||||
avoid multiple `PATH' searches (see the description of `hash' in
|
||||
*Note Bourne Shell Builtins::). A full search of the directories
|
||||
*note Bourne Shell Builtins::). A full search of the directories
|
||||
in `$PATH' is performed only if the command is not found in the
|
||||
hash table. If the search is unsuccessful, the shell prints an
|
||||
error message and returns an exit status of 127.
|
||||
@@ -2001,7 +2004,7 @@ taken.
|
||||
|
||||
5. If this execution fails because the file is not in executable
|
||||
format, and the file is not a directory, it is assumed to be a
|
||||
SHELL SCRIPT and the shell executes it as described in *Note Shell
|
||||
SHELL SCRIPT and the shell executes it as described in *note Shell
|
||||
Scripts::.
|
||||
|
||||
6. If the command was not begun asynchronously, the shell waits for
|
||||
@@ -2105,7 +2108,7 @@ modified in the shell, less any pairs removed by the `unset' and
|
||||
|
||||
The environment for any simple command or function may be augmented
|
||||
temporarily by prefixing it with parameter assignments, as described in
|
||||
*Note Shell Parameters::. These assignment statements affect only the
|
||||
*note Shell Parameters::. These assignment statements affect only the
|
||||
environment seen by that command.
|
||||
|
||||
If the `-k' option is set (*note The Set Builtin::), then all
|
||||
@@ -2225,7 +2228,7 @@ if `filename' is an executable shell script. This subshell
|
||||
reinitializes itself, so that the effect is as if a new shell had been
|
||||
invoked to interpret the script, with the exception that the locations
|
||||
of commands remembered by the parent (see the description of `hash' in
|
||||
*Note Bourne Shell Builtins::) are retained by the child.
|
||||
*note Bourne Shell Builtins::) are retained by the child.
|
||||
|
||||
Most versions of Unix make this a part of the operating system's
|
||||
command execution mechanism. If the first line of a script begins with
|
||||
@@ -2500,7 +2503,7 @@ standard.
|
||||
`['
|
||||
Evaluate a conditional expression EXPR. Each operator and operand
|
||||
must be a separate argument. Expressions are composed of the
|
||||
primaries described below in *Note Bash Conditional Expressions::.
|
||||
primaries described below in *note Bash Conditional Expressions::.
|
||||
`test' does not accept any options, nor does it accept and ignore
|
||||
an argument of `--' as signifying the end of options.
|
||||
|
||||
@@ -2654,7 +2657,7 @@ POSIX standard.
|
||||
of aliases on the standard output in a form that allows them to be
|
||||
reused as input. If arguments are supplied, an alias is defined
|
||||
for each NAME whose VALUE is given. If no VALUE is given, the name
|
||||
and value of the alias is printed. Aliases are described in *Note
|
||||
and value of the alias is printed. Aliases are described in *note
|
||||
Aliases::.
|
||||
|
||||
`bind'
|
||||
@@ -2779,13 +2782,22 @@ POSIX standard.
|
||||
given, then display the values of variables instead.
|
||||
|
||||
The `-p' option will display the attributes and values of each
|
||||
NAME. When `-p' is used, additional options are ignored. The
|
||||
`-F' option inhibits the display of function definitions; only the
|
||||
function name and attributes are printed. If the `extdebug' shell
|
||||
option is enabled using `shopt' (*note The Shopt Builtin::), the
|
||||
source file name and line number where the function is defined are
|
||||
displayed as well. `-F' implies `-f'. The following options can
|
||||
be used to restrict output to variables with the specified
|
||||
NAME. When `-p' is used with NAME arguments, additional options
|
||||
are ignored.
|
||||
|
||||
When `-p' is supplied without NAME arguments, `declare' will
|
||||
display the attributes and values of all variables having the
|
||||
attributes specified by the additional options. If no other
|
||||
options are supplied with `-p', `declare' will display the
|
||||
attributes and values of all shell variables. The `-f' option
|
||||
will restrict the display to shell functions.
|
||||
|
||||
The `-F' option inhibits the display of function definitions; only
|
||||
the function name and attributes are printed. If the `extdebug'
|
||||
shell option is enabled using `shopt' (*note The Shopt Builtin::),
|
||||
the source file name and line number where the function is defined
|
||||
are displayed as well. `-F' implies `-f'. The following options
|
||||
can be used to restrict output to variables with the specified
|
||||
attributes or to give variables attributes:
|
||||
|
||||
`-a'
|
||||
@@ -2922,7 +2934,7 @@ POSIX standard.
|
||||
let EXPRESSION [EXPRESSION]
|
||||
The `let' builtin allows arithmetic to be performed on shell
|
||||
variables. Each EXPRESSION is evaluated according to the rules
|
||||
given below in *Note Shell Arithmetic::. If the last EXPRESSION
|
||||
given below in *note Shell Arithmetic::. If the last EXPRESSION
|
||||
evaluates to 0, `let' returns 1; otherwise 0 is returned.
|
||||
|
||||
`local'
|
||||
@@ -2965,7 +2977,7 @@ POSIX standard.
|
||||
success, non-zero on failure.
|
||||
|
||||
`read'
|
||||
read [-ers] [-a ANAME] [-d DELIM] [-n NCHARS] [-p PROMPT] [-t TIMEOUT] [-u FD] [NAME ...]
|
||||
read [-ers] [-a ANAME] [-d DELIM] [-i TEXT] [-n NCHARS] [-p PROMPT] [-t TIMEOUT] [-u FD] [NAME ...]
|
||||
One line is read from the standard input, or from the file
|
||||
descriptor FD supplied as an argument to the `-u' option, and the
|
||||
first word is assigned to the first NAME, the second word to the
|
||||
@@ -2996,6 +3008,10 @@ POSIX standard.
|
||||
Readline (*note Command Line Editing::) is used to obtain the
|
||||
line.
|
||||
|
||||
`-i TEXT'
|
||||
If Readline is being used to read the line, TEXT is placed
|
||||
into the editing buffer before editing begins.
|
||||
|
||||
`-n NCHARS'
|
||||
`read' returns after reading NCHARS characters rather than
|
||||
waiting for a complete line of input.
|
||||
@@ -3067,7 +3083,7 @@ POSIX standard.
|
||||
builtin command.
|
||||
|
||||
`ulimit'
|
||||
ulimit [-acdefilmnpqrstuvxSH] [LIMIT]
|
||||
ulimit [-abcdefilmnpqrstuvxHST] [LIMIT]
|
||||
`ulimit' provides control over the resources available to processes
|
||||
started by the shell, on systems that allow such control. If an
|
||||
option is given, it is interpreted as follows:
|
||||
@@ -3080,6 +3096,9 @@ POSIX standard.
|
||||
`-a'
|
||||
All current limits are reported.
|
||||
|
||||
`-b'
|
||||
The maximum socket buffer size.
|
||||
|
||||
`-c'
|
||||
The maximum size of core files created.
|
||||
|
||||
@@ -3129,6 +3148,9 @@ POSIX standard.
|
||||
`-x'
|
||||
The maximum number of file locks.
|
||||
|
||||
`-T'
|
||||
The maximum number of threads.
|
||||
|
||||
|
||||
If LIMIT is given, it is the new value of the specified resource;
|
||||
the special LIMIT values `hard', `soft', and `unlimited' stand for
|
||||
@@ -3150,7 +3172,7 @@ POSIX standard.
|
||||
unalias [-a] [NAME ... ]
|
||||
|
||||
Remove each NAME from the list of aliases. If `-a' is supplied,
|
||||
all aliases are removed. Aliases are described in *Note Aliases::.
|
||||
all aliases are removed. Aliases are described in *note Aliases::.
|
||||
|
||||
|
||||
|
||||
@@ -3260,7 +3282,7 @@ parameters, or to display the names and values of shell variables.
|
||||
Same as `-H'.
|
||||
|
||||
`history'
|
||||
Enable command history, as described in *Note Bash
|
||||
Enable command history, as described in *note Bash
|
||||
History Facilities::. This option is on by default in
|
||||
interactive shells.
|
||||
|
||||
@@ -3523,7 +3545,7 @@ This builtin allows you to change additional shell optional behavior.
|
||||
|
||||
`expand_aliases'
|
||||
If set, aliases are expanded as described below under Aliases,
|
||||
*Note Aliases::. This option is enabled by default for
|
||||
*note Aliases::. This option is enabled by default for
|
||||
interactive shells.
|
||||
|
||||
`extdebug'
|
||||
@@ -3701,7 +3723,7 @@ respects:
|
||||
|
||||
When Bash is not executing in POSIX mode, these builtins behave no
|
||||
differently than the rest of the Bash builtin commands. The Bash POSIX
|
||||
mode is described in *Note Bash POSIX Mode::.
|
||||
mode is described in *note Bash POSIX Mode::.
|
||||
|
||||
These are the POSIX special builtins:
|
||||
break : . continue eval exec exit export readonly return set
|
||||
@@ -3807,7 +3829,7 @@ Variables::).
|
||||
executed with `.' or `source') is at the top of the stack. When a
|
||||
subroutine is executed, the number of parameters passed is pushed
|
||||
onto `BASH_ARGC'. The shell sets `BASH_ARGC' only when in
|
||||
extended debugging mode (see *Note The Shopt Builtin:: for a
|
||||
extended debugging mode (see *note The Shopt Builtin:: for a
|
||||
description of the `extdebug' option to the `shopt' builtin).
|
||||
|
||||
`BASH_ARGV'
|
||||
@@ -3816,7 +3838,7 @@ Variables::).
|
||||
subroutine call is at the top of the stack; the first parameter of
|
||||
the initial call is at the bottom. When a subroutine is executed,
|
||||
the parameters supplied are pushed onto `BASH_ARGV'. The shell
|
||||
sets `BASH_ARGV' only when in extended debugging mode (see *Note
|
||||
sets `BASH_ARGV' only when in extended debugging mode (see *note
|
||||
The Shopt Builtin:: for a description of the `extdebug' option to
|
||||
the `shopt' builtin).
|
||||
|
||||
@@ -4332,9 +4354,9 @@ the single-character options to be recognized.
|
||||
|
||||
`--debugger'
|
||||
Arrange for the debugger profile to be executed before the shell
|
||||
starts. Turns on extended debugging mode (see *Note The Shopt
|
||||
starts. Turns on extended debugging mode (see *note The Shopt
|
||||
Builtin:: for a description of the `extdebug' option to the `shopt'
|
||||
builtin) and shell function tracing (see *Note The Set Builtin::
|
||||
builtin) and shell function tracing (see *note The Set Builtin::
|
||||
for a description of the `-o functrace' option).
|
||||
|
||||
`--dump-po-strings'
|
||||
@@ -4397,7 +4419,7 @@ invocation which are not available with the `set' builtin.
|
||||
|
||||
`-i'
|
||||
Force the shell to run interactively. Interactive shells are
|
||||
described in *Note Interactive Shells::.
|
||||
described in *note Interactive Shells::.
|
||||
|
||||
`-l'
|
||||
Make this shell act as if it had been directly invoked by login.
|
||||
@@ -4468,7 +4490,7 @@ the files exist but cannot be read, Bash reports an error. Tildes are
|
||||
expanded in file names as described above under Tilde Expansion (*note
|
||||
Tilde Expansion::).
|
||||
|
||||
Interactive shells are described in *Note Interactive Shells::.
|
||||
Interactive shells are described in *note Interactive Shells::.
|
||||
|
||||
Invoked as an interactive login shell, or with `--login'
|
||||
........................................................
|
||||
@@ -4631,7 +4653,7 @@ File: bashref.info, Node: Interactive Shell Behavior, Prev: Is this Shell Inte
|
||||
When the shell is running interactively, it changes its behavior in
|
||||
several ways.
|
||||
|
||||
1. Startup files are read and executed as described in *Note Bash
|
||||
1. Startup files are read and executed as described in *note Bash
|
||||
Startup Files::.
|
||||
|
||||
2. Job Control (*note Job Control::) is enabled by default. When job
|
||||
@@ -4697,7 +4719,7 @@ several ways.
|
||||
|
||||
20. Simple spelling correction for directory arguments to the `cd'
|
||||
builtin is enabled by default (see the description of the `cdspell'
|
||||
option to the `shopt' builtin in *Note The Shopt Builtin::).
|
||||
option to the `shopt' builtin in *note The Shopt Builtin::).
|
||||
|
||||
21. The shell will check the value of the `TMOUT' variable and exit if
|
||||
a command is not read within the specified number of seconds after
|
||||
@@ -5593,7 +5615,7 @@ reports such changes immediately (*note The Set Builtin::). Any trap
|
||||
on `SIGCHLD' is executed for each child process that exits.
|
||||
|
||||
If an attempt to exit Bash is made while jobs are stopped, (or
|
||||
running, if the `checkjobs' option is enabled - see *Note The Shopt
|
||||
running, if the `checkjobs' option is enabled - see *note The Shopt
|
||||
Builtin::), the shell prints a warning message, and if the `checkjobs'
|
||||
option is enabled, lists the jobs and their statuses. The `jobs'
|
||||
command may then be used to inspect their status. If a second attempt
|
||||
@@ -6138,6 +6160,11 @@ Variable Settings
|
||||
history line retrieved with `previous-history' or
|
||||
`next-history'. The default is `off'.
|
||||
|
||||
`history-size'
|
||||
Set the maximum number of history entries saved in the
|
||||
history list. If set to zero, the number of entries in the
|
||||
history list is not limited.
|
||||
|
||||
`horizontal-scroll-mode'
|
||||
This variable can be set to either `on' or `off'. Setting it
|
||||
to `on' means that the text of the lines being edited will
|
||||
@@ -7131,10 +7158,10 @@ generated completions against the word being completed is performed;
|
||||
the function or command has complete freedom in generating the matches.
|
||||
|
||||
Any function specified with `-F' is invoked first. The function may
|
||||
use any of the shell facilities, including the `compgen' builtin
|
||||
described below (*note Programmable Completion Builtins::), to generate
|
||||
the matches. It must put the possible completions in the `COMPREPLY'
|
||||
array variable.
|
||||
use any of the shell facilities, including the `compgen' and `compopt'
|
||||
builtins described below (*note Programmable Completion Builtins::), to
|
||||
generate the matches. It must put the possible completions in the
|
||||
`COMPREPLY' array variable.
|
||||
|
||||
Next, any command specified with the `-C' option is invoked in an
|
||||
environment equivalent to command substitution. It should print a list
|
||||
@@ -7389,7 +7416,19 @@ completion facilities.
|
||||
for a NAME for which no specification exists, or an error occurs
|
||||
adding a completion specification.
|
||||
|
||||
|
||||
`compopt'
|
||||
`compopt' [-o OPTION] [+o OPTION] [NAME]
|
||||
Modify completion options for each NAME according to the OPTIONs,
|
||||
or for the currently-execution completion if no NAMEs are supplied.
|
||||
If no OPTIONs are given, display the completion options for each
|
||||
NAME or the current completion. The possible values of OPTION are
|
||||
those valid for the `complete' builtin described above.
|
||||
|
||||
The return value is true unless an invalid option is supplied, an
|
||||
attempt is made to modify the options for a NAME for which no
|
||||
completion specification exists, or an output error occurs.
|
||||
|
||||
|
||||
|
||||
File: bashref.info, Node: Using History Interactively, Next: Installing Bash, Prev: Command Line Editing, Up: Top
|
||||
|
||||
@@ -8094,7 +8133,7 @@ does not provide the necessary support.
|
||||
|
||||
`--enable-brace-expansion'
|
||||
Include `csh'-like brace expansion ( `b{a,b}c' ==> `bac bbc' ).
|
||||
See *Note Brace Expansion::, for a complete description.
|
||||
See *note Brace Expansion::, for a complete description.
|
||||
|
||||
`--enable-command-timing'
|
||||
Include support for recognizing `time' as a reserved word and for
|
||||
@@ -8120,7 +8159,7 @@ does not provide the necessary support.
|
||||
|
||||
`--enable-disabled-builtins'
|
||||
Allow builtin commands to be invoked via `builtin xxx' even after
|
||||
`xxx' has been disabled using `enable -n xxx'. See *Note Bash
|
||||
`xxx' has been disabled using `enable -n xxx'. See *note Bash
|
||||
Builtins::, for details of the `builtin' and `enable' builtin
|
||||
commands.
|
||||
|
||||
@@ -8130,7 +8169,7 @@ does not provide the necessary support.
|
||||
|
||||
`--enable-extended-glob'
|
||||
Include support for the extended pattern matching features
|
||||
described above under *Note Pattern Matching::.
|
||||
described above under *note Pattern Matching::.
|
||||
|
||||
`--enable-help-builtin'
|
||||
Include the `help' builtin, which displays help on shell builtins
|
||||
@@ -8165,7 +8204,7 @@ does not provide the necessary support.
|
||||
`--enable-prompt-string-decoding'
|
||||
Turn on the interpretation of a number of backslash-escaped
|
||||
characters in the `$PS1', `$PS2', `$PS3', and `$PS4' prompt
|
||||
strings. See *Note Printing a Prompt::, for a complete list of
|
||||
strings. See *note Printing a Prompt::, for a complete list of
|
||||
prompt string escape sequences.
|
||||
|
||||
`--enable-readline'
|
||||
@@ -8174,7 +8213,7 @@ does not provide the necessary support.
|
||||
|
||||
`--enable-restricted'
|
||||
Include support for a "restricted shell". If this is enabled,
|
||||
Bash, when called as `rbash', enters a restricted mode. See *Note
|
||||
Bash, when called as `rbash', enters a restricted mode. See *note
|
||||
The Restricted Shell::, for a description of restricted mode.
|
||||
|
||||
`--enable-select'
|
||||
@@ -8272,8 +8311,8 @@ the baseline reference.
|
||||
the `bind' builtin.
|
||||
|
||||
* Bash provides a programmable word completion mechanism (*note
|
||||
Programmable Completion::), and two builtin commands, `complete'
|
||||
and `compgen', to manipulate it.
|
||||
Programmable Completion::), and builtin commands `complete',
|
||||
`compgen', and `compopt', to manipulate it.
|
||||
|
||||
* Bash has command history (*note Bash History Facilities::) and the
|
||||
`history' and `fc' builtins to manipulate it. The Bash history
|
||||
@@ -8565,7 +8604,7 @@ the baseline reference.
|
||||
* The SVR4.2 `sh' uses a `TIMEOUT' variable like Bash uses `TMOUT'.
|
||||
|
||||
|
||||
More features unique to Bash may be found in *Note Bash Features::.
|
||||
More features unique to Bash may be found in *note Bash Features::.
|
||||
|
||||
B.1 Implementation Differences From The SVR4.2 Shell
|
||||
====================================================
|
||||
@@ -9088,6 +9127,8 @@ D.1 Index of Shell Builtin Commands
|
||||
(line 10)
|
||||
* complete: Programmable Completion Builtins.
|
||||
(line 28)
|
||||
* compopt: Programmable Completion Builtins.
|
||||
(line 210)
|
||||
* continue: Bourne Shell Builtins.
|
||||
(line 55)
|
||||
* declare: Bash Builtins. (line 136)
|
||||
@@ -9095,8 +9136,8 @@ D.1 Index of Shell Builtin Commands
|
||||
(line 7)
|
||||
* disown: Job Control Builtins.
|
||||
(line 83)
|
||||
* echo: Bash Builtins. (line 193)
|
||||
* enable: Bash Builtins. (line 245)
|
||||
* echo: Bash Builtins. (line 202)
|
||||
* enable: Bash Builtins. (line 254)
|
||||
* eval: Bourne Shell Builtins.
|
||||
(line 63)
|
||||
* exec: Bourne Shell Builtins.
|
||||
@@ -9113,24 +9154,24 @@ D.1 Index of Shell Builtin Commands
|
||||
(line 103)
|
||||
* hash: Bourne Shell Builtins.
|
||||
(line 145)
|
||||
* help: Bash Builtins. (line 273)
|
||||
* help: Bash Builtins. (line 282)
|
||||
* history: Bash History Builtins.
|
||||
(line 39)
|
||||
* jobs: Job Control Builtins.
|
||||
(line 25)
|
||||
* kill: Job Control Builtins.
|
||||
(line 57)
|
||||
* let: Bash Builtins. (line 282)
|
||||
* local: Bash Builtins. (line 289)
|
||||
* logout: Bash Builtins. (line 299)
|
||||
* let: Bash Builtins. (line 291)
|
||||
* local: Bash Builtins. (line 298)
|
||||
* logout: Bash Builtins. (line 308)
|
||||
* popd: Directory Stack Builtins.
|
||||
(line 37)
|
||||
* printf: Bash Builtins. (line 303)
|
||||
* printf: Bash Builtins. (line 312)
|
||||
* pushd: Directory Stack Builtins.
|
||||
(line 58)
|
||||
* pwd: Bourne Shell Builtins.
|
||||
(line 163)
|
||||
* read: Bash Builtins. (line 328)
|
||||
* read: Bash Builtins. (line 337)
|
||||
* readonly: Bourne Shell Builtins.
|
||||
(line 172)
|
||||
* return: Bourne Shell Builtins.
|
||||
@@ -9139,7 +9180,7 @@ D.1 Index of Shell Builtin Commands
|
||||
* shift: Bourne Shell Builtins.
|
||||
(line 200)
|
||||
* shopt: The Shopt Builtin. (line 9)
|
||||
* source: Bash Builtins. (line 389)
|
||||
* source: Bash Builtins. (line 402)
|
||||
* suspend: Job Control Builtins.
|
||||
(line 94)
|
||||
* test: Bourne Shell Builtins.
|
||||
@@ -9148,12 +9189,12 @@ D.1 Index of Shell Builtin Commands
|
||||
(line 280)
|
||||
* trap: Bourne Shell Builtins.
|
||||
(line 285)
|
||||
* type: Bash Builtins. (line 393)
|
||||
* typeset: Bash Builtins. (line 424)
|
||||
* ulimit: Bash Builtins. (line 430)
|
||||
* type: Bash Builtins. (line 406)
|
||||
* typeset: Bash Builtins. (line 437)
|
||||
* ulimit: Bash Builtins. (line 443)
|
||||
* umask: Bourne Shell Builtins.
|
||||
(line 326)
|
||||
* unalias: Bash Builtins. (line 510)
|
||||
* unalias: Bash Builtins. (line 529)
|
||||
* unset: Bourne Shell Builtins.
|
||||
(line 343)
|
||||
* wait: Job Control Builtins.
|
||||
@@ -9279,12 +9320,14 @@ D.3 Parameter and Variable Index
|
||||
* HISTIGNORE: Bash Variables. (line 261)
|
||||
* history-preserve-point: Readline Init File Syntax.
|
||||
(line 96)
|
||||
* history-size: Readline Init File Syntax.
|
||||
(line 102)
|
||||
* HISTSIZE: Bash Variables. (line 280)
|
||||
* HISTTIMEFORMAT: Bash Variables. (line 284)
|
||||
* HOME: Bourne Shell Variables.
|
||||
(line 13)
|
||||
* horizontal-scroll-mode: Readline Init File Syntax.
|
||||
(line 102)
|
||||
(line 107)
|
||||
* HOSTFILE: Bash Variables. (line 293)
|
||||
* HOSTNAME: Bash Variables. (line 304)
|
||||
* HOSTTYPE: Bash Variables. (line 307)
|
||||
@@ -9292,12 +9335,12 @@ D.3 Parameter and Variable Index
|
||||
(line 18)
|
||||
* IGNOREEOF: Bash Variables. (line 310)
|
||||
* input-meta: Readline Init File Syntax.
|
||||
(line 109)
|
||||
(line 114)
|
||||
* INPUTRC: Bash Variables. (line 320)
|
||||
* isearch-terminators: Readline Init File Syntax.
|
||||
(line 116)
|
||||
(line 121)
|
||||
* keymap: Readline Init File Syntax.
|
||||
(line 123)
|
||||
(line 128)
|
||||
* LANG: Bash Variables. (line 324)
|
||||
* LC_ALL: Bash Variables. (line 328)
|
||||
* LC_COLLATE: Bash Variables. (line 332)
|
||||
@@ -9314,13 +9357,13 @@ D.3 Parameter and Variable Index
|
||||
* MAILPATH: Bourne Shell Variables.
|
||||
(line 27)
|
||||
* mark-modified-lines: Readline Init File Syntax.
|
||||
(line 136)
|
||||
* mark-symlinked-directories: Readline Init File Syntax.
|
||||
(line 141)
|
||||
* match-hidden-files: Readline Init File Syntax.
|
||||
* mark-symlinked-directories: Readline Init File Syntax.
|
||||
(line 146)
|
||||
* match-hidden-files: Readline Init File Syntax.
|
||||
(line 151)
|
||||
* meta-flag: Readline Init File Syntax.
|
||||
(line 109)
|
||||
(line 114)
|
||||
* OLDPWD: Bash Variables. (line 373)
|
||||
* OPTARG: Bourne Shell Variables.
|
||||
(line 34)
|
||||
@@ -9329,9 +9372,9 @@ D.3 Parameter and Variable Index
|
||||
(line 38)
|
||||
* OSTYPE: Bash Variables. (line 380)
|
||||
* output-meta: Readline Init File Syntax.
|
||||
(line 153)
|
||||
* page-completions: Readline Init File Syntax.
|
||||
(line 158)
|
||||
* page-completions: Readline Init File Syntax.
|
||||
(line 163)
|
||||
* PATH: Bourne Shell Variables.
|
||||
(line 42)
|
||||
* PIPESTATUS: Bash Variables. (line 383)
|
||||
@@ -9352,9 +9395,9 @@ D.3 Parameter and Variable Index
|
||||
* SHELLOPTS: Bash Variables. (line 438)
|
||||
* SHLVL: Bash Variables. (line 447)
|
||||
* show-all-if-ambiguous: Readline Init File Syntax.
|
||||
(line 168)
|
||||
(line 173)
|
||||
* show-all-if-unmodified: Readline Init File Syntax.
|
||||
(line 174)
|
||||
(line 179)
|
||||
* TEXTDOMAIN: Locale Translation. (line 11)
|
||||
* TEXTDOMAINDIR: Locale Translation. (line 11)
|
||||
* TIMEFORMAT: Bash Variables. (line 452)
|
||||
@@ -9362,7 +9405,7 @@ D.3 Parameter and Variable Index
|
||||
* TMPDIR: Bash Variables. (line 502)
|
||||
* UID: Bash Variables. (line 506)
|
||||
* visible-stats: Readline Init File Syntax.
|
||||
(line 183)
|
||||
(line 188)
|
||||
|
||||
|
||||
File: bashref.info, Node: Function Index, Next: Concept Index, Prev: Variable Index, Up: Indexes
|
||||
@@ -9549,7 +9592,7 @@ D.5 Concept Index
|
||||
* history list: Bash History Facilities.
|
||||
(line 6)
|
||||
* History, how to use: Programmable Completion Builtins.
|
||||
(line 209)
|
||||
(line 222)
|
||||
* identifier: Definitions. (line 50)
|
||||
* initialization file, readline: Readline Init File. (line 6)
|
||||
* installation: Basic Installation. (line 6)
|
||||
@@ -9626,131 +9669,131 @@ D.5 Concept Index
|
||||
|
||||
|
||||
Tag Table:
|
||||
Node: Top1350
|
||||
Node: Introduction3189
|
||||
Node: What is Bash?3417
|
||||
Node: What is a shell?4530
|
||||
Node: Definitions7070
|
||||
Node: Basic Shell Features9839
|
||||
Node: Shell Syntax11058
|
||||
Node: Shell Operation12088
|
||||
Node: Quoting13382
|
||||
Node: Escape Character14685
|
||||
Node: Single Quotes15170
|
||||
Node: Double Quotes15518
|
||||
Node: ANSI-C Quoting16643
|
||||
Node: Locale Translation17599
|
||||
Node: Comments18495
|
||||
Node: Shell Commands19113
|
||||
Node: Simple Commands19879
|
||||
Node: Pipelines20510
|
||||
Node: Lists22385
|
||||
Node: Compound Commands24016
|
||||
Node: Looping Constructs24800
|
||||
Node: Conditional Constructs27247
|
||||
Node: Command Grouping34807
|
||||
Node: Shell Functions36286
|
||||
Node: Shell Parameters40747
|
||||
Node: Positional Parameters43077
|
||||
Node: Special Parameters43977
|
||||
Node: Shell Expansions46941
|
||||
Node: Brace Expansion48866
|
||||
Node: Tilde Expansion51192
|
||||
Node: Shell Parameter Expansion53543
|
||||
Node: Command Substitution61243
|
||||
Node: Arithmetic Expansion62576
|
||||
Node: Process Substitution63426
|
||||
Node: Word Splitting64476
|
||||
Node: Filename Expansion66099
|
||||
Node: Pattern Matching68239
|
||||
Node: Quote Removal71557
|
||||
Node: Redirections71852
|
||||
Node: Executing Commands79582
|
||||
Node: Simple Command Expansion80252
|
||||
Node: Command Search and Execution82182
|
||||
Node: Command Execution Environment84188
|
||||
Node: Environment86987
|
||||
Node: Exit Status88647
|
||||
Node: Signals90268
|
||||
Node: Shell Scripts92236
|
||||
Node: Shell Builtin Commands94754
|
||||
Node: Bourne Shell Builtins96431
|
||||
Node: Bash Builtins113661
|
||||
Node: Modifying Shell Behavior133791
|
||||
Node: The Set Builtin134136
|
||||
Node: The Shopt Builtin142984
|
||||
Node: Special Builtins153392
|
||||
Node: Shell Variables154371
|
||||
Node: Bourne Shell Variables154811
|
||||
Node: Bash Variables156792
|
||||
Node: Bash Features178164
|
||||
Node: Invoking Bash179047
|
||||
Node: Bash Startup Files184856
|
||||
Node: Interactive Shells189825
|
||||
Node: What is an Interactive Shell?190235
|
||||
Node: Is this Shell Interactive?190884
|
||||
Node: Interactive Shell Behavior191699
|
||||
Node: Bash Conditional Expressions194979
|
||||
Node: Shell Arithmetic198558
|
||||
Node: Aliases201304
|
||||
Node: Arrays203876
|
||||
Node: The Directory Stack207225
|
||||
Node: Directory Stack Builtins207939
|
||||
Node: Printing a Prompt210831
|
||||
Node: The Restricted Shell213545
|
||||
Node: Bash POSIX Mode215377
|
||||
Node: Job Control223136
|
||||
Node: Job Control Basics223596
|
||||
Node: Job Control Builtins228105
|
||||
Node: Job Control Variables232432
|
||||
Node: Command Line Editing233590
|
||||
Node: Introduction and Notation234585
|
||||
Node: Readline Interaction236207
|
||||
Node: Readline Bare Essentials237398
|
||||
Node: Readline Movement Commands239187
|
||||
Node: Readline Killing Commands240152
|
||||
Node: Readline Arguments242072
|
||||
Node: Searching243116
|
||||
Node: Readline Init File245302
|
||||
Node: Readline Init File Syntax246449
|
||||
Node: Conditional Init Constructs258824
|
||||
Node: Sample Init File261357
|
||||
Node: Bindable Readline Commands264474
|
||||
Node: Commands For Moving265681
|
||||
Node: Commands For History266542
|
||||
Node: Commands For Text269697
|
||||
Node: Commands For Killing272370
|
||||
Node: Numeric Arguments274512
|
||||
Node: Commands For Completion275651
|
||||
Node: Keyboard Macros279244
|
||||
Node: Miscellaneous Commands279815
|
||||
Node: Readline vi Mode285126
|
||||
Node: Programmable Completion286040
|
||||
Node: Programmable Completion Builtins291858
|
||||
Node: Using History Interactively299454
|
||||
Node: Bash History Facilities300138
|
||||
Node: Bash History Builtins303052
|
||||
Node: History Interaction306909
|
||||
Node: Event Designators309614
|
||||
Node: Word Designators310629
|
||||
Node: Modifiers312268
|
||||
Node: Installing Bash313672
|
||||
Node: Basic Installation314809
|
||||
Node: Compilers and Options317501
|
||||
Node: Compiling For Multiple Architectures318242
|
||||
Node: Installation Names319906
|
||||
Node: Specifying the System Type320724
|
||||
Node: Sharing Defaults321440
|
||||
Node: Operation Controls322113
|
||||
Node: Optional Features323071
|
||||
Node: Reporting Bugs332002
|
||||
Node: Major Differences From The Bourne Shell333196
|
||||
Node: GNU Free Documentation License349876
|
||||
Node: Indexes372337
|
||||
Node: Builtin Index372791
|
||||
Node: Reserved Word Index379324
|
||||
Node: Variable Index381772
|
||||
Node: Function Index392936
|
||||
Node: Concept Index399668
|
||||
Node: Top1344
|
||||
Node: Introduction3175
|
||||
Node: What is Bash?3403
|
||||
Node: What is a shell?4516
|
||||
Node: Definitions7056
|
||||
Node: Basic Shell Features9825
|
||||
Node: Shell Syntax11044
|
||||
Node: Shell Operation12074
|
||||
Node: Quoting13368
|
||||
Node: Escape Character14671
|
||||
Node: Single Quotes15156
|
||||
Node: Double Quotes15504
|
||||
Node: ANSI-C Quoting16629
|
||||
Node: Locale Translation17585
|
||||
Node: Comments18481
|
||||
Node: Shell Commands19099
|
||||
Node: Simple Commands19865
|
||||
Node: Pipelines20496
|
||||
Node: Lists22371
|
||||
Node: Compound Commands24100
|
||||
Node: Looping Constructs24884
|
||||
Node: Conditional Constructs27331
|
||||
Node: Command Grouping34891
|
||||
Node: Shell Functions36370
|
||||
Node: Shell Parameters40831
|
||||
Node: Positional Parameters43161
|
||||
Node: Special Parameters44061
|
||||
Node: Shell Expansions47025
|
||||
Node: Brace Expansion48950
|
||||
Node: Tilde Expansion51276
|
||||
Node: Shell Parameter Expansion53627
|
||||
Node: Command Substitution61327
|
||||
Node: Arithmetic Expansion62660
|
||||
Node: Process Substitution63510
|
||||
Node: Word Splitting64560
|
||||
Node: Filename Expansion66183
|
||||
Node: Pattern Matching68323
|
||||
Node: Quote Removal71641
|
||||
Node: Redirections71936
|
||||
Node: Executing Commands79666
|
||||
Node: Simple Command Expansion80336
|
||||
Node: Command Search and Execution82266
|
||||
Node: Command Execution Environment84272
|
||||
Node: Environment87071
|
||||
Node: Exit Status88731
|
||||
Node: Signals90352
|
||||
Node: Shell Scripts92320
|
||||
Node: Shell Builtin Commands94838
|
||||
Node: Bourne Shell Builtins96515
|
||||
Node: Bash Builtins113745
|
||||
Node: Modifying Shell Behavior134539
|
||||
Node: The Set Builtin134884
|
||||
Node: The Shopt Builtin143732
|
||||
Node: Special Builtins154140
|
||||
Node: Shell Variables155119
|
||||
Node: Bourne Shell Variables155559
|
||||
Node: Bash Variables157540
|
||||
Node: Bash Features178912
|
||||
Node: Invoking Bash179795
|
||||
Node: Bash Startup Files185604
|
||||
Node: Interactive Shells190573
|
||||
Node: What is an Interactive Shell?190983
|
||||
Node: Is this Shell Interactive?191632
|
||||
Node: Interactive Shell Behavior192447
|
||||
Node: Bash Conditional Expressions195727
|
||||
Node: Shell Arithmetic199306
|
||||
Node: Aliases202052
|
||||
Node: Arrays204624
|
||||
Node: The Directory Stack207973
|
||||
Node: Directory Stack Builtins208687
|
||||
Node: Printing a Prompt211579
|
||||
Node: The Restricted Shell214293
|
||||
Node: Bash POSIX Mode216125
|
||||
Node: Job Control223884
|
||||
Node: Job Control Basics224344
|
||||
Node: Job Control Builtins228853
|
||||
Node: Job Control Variables233180
|
||||
Node: Command Line Editing234338
|
||||
Node: Introduction and Notation235333
|
||||
Node: Readline Interaction236955
|
||||
Node: Readline Bare Essentials238146
|
||||
Node: Readline Movement Commands239935
|
||||
Node: Readline Killing Commands240900
|
||||
Node: Readline Arguments242820
|
||||
Node: Searching243864
|
||||
Node: Readline Init File246050
|
||||
Node: Readline Init File Syntax247197
|
||||
Node: Conditional Init Constructs259766
|
||||
Node: Sample Init File262299
|
||||
Node: Bindable Readline Commands265416
|
||||
Node: Commands For Moving266623
|
||||
Node: Commands For History267484
|
||||
Node: Commands For Text270639
|
||||
Node: Commands For Killing273312
|
||||
Node: Numeric Arguments275454
|
||||
Node: Commands For Completion276593
|
||||
Node: Keyboard Macros280186
|
||||
Node: Miscellaneous Commands280757
|
||||
Node: Readline vi Mode286068
|
||||
Node: Programmable Completion286982
|
||||
Node: Programmable Completion Builtins292815
|
||||
Node: Using History Interactively301021
|
||||
Node: Bash History Facilities301705
|
||||
Node: Bash History Builtins304619
|
||||
Node: History Interaction308476
|
||||
Node: Event Designators311181
|
||||
Node: Word Designators312196
|
||||
Node: Modifiers313835
|
||||
Node: Installing Bash315239
|
||||
Node: Basic Installation316376
|
||||
Node: Compilers and Options319068
|
||||
Node: Compiling For Multiple Architectures319809
|
||||
Node: Installation Names321473
|
||||
Node: Specifying the System Type322291
|
||||
Node: Sharing Defaults323007
|
||||
Node: Operation Controls323680
|
||||
Node: Optional Features324638
|
||||
Node: Reporting Bugs333569
|
||||
Node: Major Differences From The Bourne Shell334763
|
||||
Node: GNU Free Documentation License351450
|
||||
Node: Indexes373911
|
||||
Node: Builtin Index374365
|
||||
Node: Reserved Word Index381046
|
||||
Node: Variable Index383494
|
||||
Node: Function Index394799
|
||||
Node: Concept Index401531
|
||||
|
||||
End Tag Table
|
||||
|
||||
Reference in New Issue
Block a user