commit bash-20170224 snapshot

This commit is contained in:
Chet Ramey
2017-02-27 11:40:23 -05:00
parent 514049fa8e
commit cb0c28b93b
26 changed files with 280 additions and 56 deletions
+3
View File
@@ -1238,7 +1238,10 @@ maybe_make_restricted (name)
temp++;
if (restricted || (STREQ (temp, RESTRICTED_SHELL_NAME)))
{
#if defined (RBASH_STATIC_PATH_VALUE)
temp_var = bind_variable ("PATH", RBASH_STATIC_PATH_VALUE, 0);
stupidly_hack_special_variables ("PATH"); /* clear hash table */
#endif
set_var_read_only ("PATH");
set_var_read_only ("SHELL");
set_var_read_only ("ENV");