mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-07 02:32:27 +02:00
commit bash-20140425 snapshot
This commit is contained in:
+9
-2
@@ -4208,9 +4208,16 @@ bash_directory_completion_matches (text)
|
||||
int qc;
|
||||
|
||||
qc = rl_dispatching ? rl_completion_quote_character : 0;
|
||||
dfn = bash_dequote_filename ((char *)text, qc);
|
||||
/* If rl_completion_found_quote != 0, rl_completion_matches will call the
|
||||
filename dequoting function, causing the directory name to be dequoted
|
||||
twice. */
|
||||
if (rl_dispatching && rl_completion_found_quote == 0)
|
||||
dfn = bash_dequote_filename ((char *)text, qc);
|
||||
else
|
||||
dfn = (char *)text;
|
||||
m1 = rl_completion_matches (dfn, rl_filename_completion_function);
|
||||
free (dfn);
|
||||
if (dfn != text)
|
||||
free (dfn);
|
||||
|
||||
if (m1 == 0 || m1[0] == 0)
|
||||
return m1;
|
||||
|
||||
Reference in New Issue
Block a user