mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-10 04:00:34 +02:00
commit bash-20141128 snapshot
This commit is contained in:
+2
-2
@@ -2634,7 +2634,7 @@ bind_variable_internal (name, value, table, hflags, aflags)
|
||||
else
|
||||
{
|
||||
assign_value:
|
||||
if (readonly_p (entry) || noassign_p (entry))
|
||||
if ((readonly_p (entry) && (aflags & ASS_FORCE) == 0) || noassign_p (entry))
|
||||
{
|
||||
if (readonly_p (entry))
|
||||
err_readonly (name);
|
||||
@@ -3840,7 +3840,7 @@ push_temp_var (data)
|
||||
binding_table = shell_variables->table = hash_create (TEMPENV_HASH_BUCKETS);
|
||||
}
|
||||
|
||||
v = bind_variable_internal (var->name, value_cell (var), binding_table, 0, 0);
|
||||
v = bind_variable_internal (var->name, value_cell (var), binding_table, 0, ASS_FORCE);
|
||||
|
||||
/* XXX - should we set the context here? It shouldn't matter because of how
|
||||
assign_in_env works, but might want to check. */
|
||||
|
||||
Reference in New Issue
Block a user