mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-01 17:39:56 +02:00
fix issue with making local variables from the temporary environment arrays; documentation updates; fix read builtin to check that the delimiter is not a newline before changing the terminal settings with a zero-length timeout
This commit is contained in:
@@ -102,6 +102,10 @@ convert_var_to_array (SHELL_VAR *var)
|
||||
/* Since namerefs can't be array variables, turn off nameref attribute */
|
||||
VUNSETATTR (var, att_nameref);
|
||||
|
||||
/* Temporary environment variables can't be array variables */
|
||||
/* itrace("convert_var_to_array: turning off att_tempvar for %s", var->name);*/
|
||||
VUNSETATTR (var, att_tempvar);
|
||||
|
||||
stupidly_hack_special_variables (var->name);
|
||||
return var;
|
||||
}
|
||||
@@ -140,6 +144,10 @@ convert_var_to_assoc (SHELL_VAR *var)
|
||||
/* Since namerefs can't be array variables, turn off nameref attribute */
|
||||
VUNSETATTR (var, att_nameref);
|
||||
|
||||
/* Temporary environment variables can't be array variables */
|
||||
/*itrace("convert_var_to_assoc: turning off att_tempvar for %s", var->name);*/
|
||||
VUNSETATTR (var, att_tempvar);
|
||||
|
||||
stupidly_hack_special_variables (var->name);
|
||||
return var;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user