default value for BASH_LOADABLES_PATH; other minor changes

This commit is contained in:
Chet Ramey
2021-04-12 16:44:43 -04:00
parent 0e51345317
commit fb4ddc2d2b
13 changed files with 393 additions and 541 deletions
+8 -2
View File
@@ -1057,8 +1057,14 @@ unbind_array_element (var, sub, flags)
{
if (array_p (var) || assoc_p (var))
{
unbind_variable (var->name); /* XXX -- {array,assoc}_flush ? */
return (0);
#if 0 /* TAG: bash-5.2 */
if (flags & VA_ALLOWALL)
#endif
{
unbind_variable (var->name); /* XXX -- {array,assoc}_flush ? */
return (0);
}
/* otherwise we fall through and try to unset element `@' or `*' */
}
else
return -2; /* don't allow this to unset scalar variables */