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
+5 -1
View File
@@ -1939,7 +1939,7 @@ executable_completion (filename, searching_path)
f = savestring (filename);
#else
c = 0;
f = bash_quote_filename (filename, SINGLE_MATCH, &c);
f = bash_quote_filename ((char *)filename, SINGLE_MATCH, &c);
#endif
bash_directory_completion_hook (&f);
@@ -1992,6 +1992,8 @@ command_word_completion_function (hint_text, state)
temp = rl_variable_value ("completion-ignore-case");
igncase = RL_BOOLEAN_VARIABLE_VALUE (temp);
old_glob_ignore_case = glob_ignore_case;
if (glob_matches)
{
free (glob_matches);
@@ -2177,6 +2179,8 @@ globword:
{
if (state == 0)
{
rl_filename_completion_desired = 1;
glob_ignore_case = igncase;
glob_matches = shell_glob_filename (hint, 0);
glob_ignore_case = old_glob_ignore_case;