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:
+5
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user