commit bash-20040422 snapshot

This commit is contained in:
Chet Ramey
2011-12-03 12:56:49 -05:00
parent 1d7ecd770c
commit de8913bd20
51 changed files with 13071 additions and 634 deletions
+22 -22
View File
@@ -1729,17 +1729,17 @@ AALLIIAASSEESS
the first word of a simple command. The shell maintains a list of
aliases that may be set and unset with the aalliiaass and uunnaalliiaass builtin
commands (see SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below). The first word of each
command, if unquoted, is checked to see if it has an alias. If so,
that word is replaced by the text of the alias. The alias name and the
replacement text may contain any valid shell input, including the
_m_e_t_a_c_h_a_r_a_c_t_e_r_s listed above, with the exception that the alias name may
not contain _=. The first word of the replacement text is tested for
aliases, but a word that is identical to an alias being expanded is not
expanded a second time. This means that one may alias llss to llss --FF, for
instance, and bbaasshh does not try to recursively expand the replacement
text. If the last character of the alias value is a _b_l_a_n_k, then the
next command word following the alias is also checked for alias expan-
sion.
simple command, if unquoted, is checked to see if it has an alias. If
so, that word is replaced by the text of the alias. The characters //,
$$, ``, and == and any of the shell _m_e_t_a_c_h_a_r_a_c_t_e_r_s or quoting characters
listed above may not appear in an alias name. The replacement text may
contain any valid shell input, including shell metacharacters. The
first word of the replacement text is tested for aliases, but a word
that is identical to an alias being expanded is not expanded a second
time. This means that one may alias llss to llss --FF, for instance, and
bbaasshh does not try to recursively expand the replacement text. If the
last character of the alias value is a _b_l_a_n_k, then the next command
word following the alias is also checked for alias expansion.
Aliases are created and listed with the aalliiaass command, and removed with
the uunnaalliiaass command.
@@ -1778,16 +1778,16 @@ FFUUNNCCTTIIOONNSS
interpret them (contrast this with the execution of a shell script).
When a function is executed, the arguments to the function become the
positional parameters during its execution. The special parameter ## is
updated to reflect the change. Positional parameter 0 is unchanged.
The first element of the FFUUNNCCNNAAMMEE variable is set to the name of the
function while the function is executing. All other aspects of the
shell execution environment are identical between a function and its
caller with the exception that the DDEEBBUUGG trap (see the description of
the ttrraapp builtin under SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below) is not inherited
unless the function has been given the ttrraaccee attribute (see the
description of the ddeeccllaarree builtin below) or the --oo ffuunnccttrraaccee shell
option has been enabled with the sseett builtin (in which case all func-
tions inherit the DDEEBBUUGG trap).
updated to reflect the change. Special parameter 0 is unchanged. The
first element of the FFUUNNCCNNAAMMEE variable is set to the name of the func-
tion while the function is executing. All other aspects of the shell
execution environment are identical between a function and its caller
with the exception that the DDEEBBUUGG trap (see the description of the ttrraapp
builtin under SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below) is not inherited unless the
function has been given the ttrraaccee attribute (see the description of the
ddeeccllaarree builtin below) or the --oo ffuunnccttrraaccee shell option has been
enabled with the sseett builtin (in which case all functions inherit the
DDEEBBUUGG trap).
Variables local to the function may be declared with the llooccaall builtin
command. Ordinarily, variables and their values are shared between the
@@ -4775,4 +4775,4 @@ BBUUGGSS
GNU Bash-3.0 2004 Jan 28 BASH(1)
GNU Bash-3.0 2004 Apr 20 BASH(1)