fix up semantics of assigning to noassign variables; fix error message in arithmetic noeval mode; add shared memory option to anonymous files; fix static linking config in configure

This commit is contained in:
Chet Ramey
2023-07-03 10:26:23 -04:00
parent fa98070927
commit 6a9e77e881
13 changed files with 189 additions and 44 deletions
+3 -1
View File
@@ -464,7 +464,7 @@ initialize_shell_variables (char **env, int privmode)
temp_string = extract_array_assignment_list (string, &string_length);
temp_var = assign_array_from_string (tname, temp_string, 0);
FREE (temp_string);
if (temp_var)
if (temp_var && noassign_p (temp_var) == 0)
{
VSETATTR (temp_var, (att_exported | att_imported));
array_needs_making = 1;
@@ -484,6 +484,8 @@ initialize_shell_variables (char **env, int privmode)
/* need to make sure it exists as an associative array first */
temp_var = find_or_make_array_variable (tname, 2);
if (temp_var && noassign_p (temp_var))
temp_var = 0;
if (temp_var)
{
string_length = 1;