commit bash-20161021 snapshot

This commit is contained in:
Chet Ramey
2016-10-24 14:11:58 -04:00
parent 03b415d33e
commit 628bb7b79b
5 changed files with 24 additions and 3 deletions
+9
View File
@@ -12004,3 +12004,12 @@ aclocal.m4
with existing set of preprocessor defines, so it can work when
cross-compiling. Suggested by Felix Janda <felix.janda@posteo.de>
10/19
-----
variables.c
- get_bashpid: BASHPID is no longer readonly; assignments to it are
just ignored. Suggested by Martijn Dekker <martijn@inlv.org>
doc/{bash.1,bashref.texi}
- BASHPID: note that assignments are ignored and unsetting BASHPID
causes it to lose its special properties
+8
View File
@@ -1453,6 +1453,14 @@ This variable is read-only.
Expands to the process ID of the current \fBbash\fP process.
This differs from \fB$$\fP under certain circumstances, such as subshells
that do not require \fBbash\fP to be re-initialized.
Assignments to
.SM
.B BASHPID
have no effect.
If
.B BASHPID
is unset, it loses its special properties, even if it is
subsequently reset.
.TP
.B BASH_ALIASES
An associative array variable whose members correspond to the internal
+4
View File
@@ -5480,6 +5480,10 @@ reading any startup files. This variable is readonly.
Expands to the process ID of the current Bash process.
This differs from @code{$$} under certain circumstances, such as subshells
that do not require Bash to be re-initialized.
Assignments to @env{BASHPID} have no effect.
If @code{BASHPID}
is unset, it loses its special properties, even if it is
subsequently reset.
@item BASH_ALIASES
An associative array variable whose members correspond to the internal
+1 -1
View File
@@ -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
+2 -2
View File
@@ -1462,7 +1462,7 @@ get_bashpid (var)
p = itos (pid);
FREE (value_cell (var));
VSETATTR (var, att_integer|att_readonly);
VSETATTR (var, att_integer); /* XXX - was also att_readonly */
var_setvalue (var, p);
return (var);
}
@@ -1767,7 +1767,7 @@ initialize_dynamic_variables ()
VSETATTR (v, att_integer);
INIT_DYNAMIC_VAR ("BASHPID", (char *)NULL, get_bashpid, null_assign);
VSETATTR (v, att_integer|att_readonly);
VSETATTR (v, att_integer);
#if defined (HISTORY)
INIT_DYNAMIC_VAR ("HISTCMD", (char *)NULL, get_histcmd, (sh_var_assign_func_t *)NULL);