allow builtins to assign to associative arrays using @ or * as keys; fixes to glob completion of command words

This commit is contained in:
Chet Ramey
2021-04-28 11:30:31 -04:00
parent 3fd77612fc
commit 046d0cc93b
10 changed files with 64 additions and 13 deletions
+3 -2
View File
@@ -3488,14 +3488,15 @@ bind_int_variable (lhs, rhs, flags)
}
SHELL_VAR *
bind_var_to_int (var, val)
bind_var_to_int (var, val, flags)
char *var;
intmax_t val;
int flags;
{
char ibuf[INT_STRLEN_BOUND (intmax_t) + 1], *p;
p = fmtulong (val, 10, ibuf, sizeof (ibuf), 0);
return (bind_int_variable (var, p, 0));
return (bind_int_variable (var, p, flags));
}
/* Do a function binding to a variable. You pass the name and