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:
Chet Ramey
2025-10-06 17:20:10 -04:00
parent f2f545ad7b
commit 25c6aa5b23
26 changed files with 3325 additions and 2939 deletions
+8
View File
@@ -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;
}