mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-10 12:10:35 +02:00
allow builtins to assign to associative arrays using @ or * as keys; fixes to glob completion of command words
This commit is contained in:
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user