mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-27 07:43:07 +02:00
commit bash-20161021 snapshot
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
@@ -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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user