7 Bug-Reported-by: Clark Wang <dearvoid@gmail.com>
8 Bug-Reference-ID: <CADv8-og2TOSoabXeNVXVGaXN3tEMHnYVq1rwOLe5meaRPSGRig@mail.gmail.com>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2014-04/msg00095.html
13 When completing directory names, the directory name is dequoted twice.
14 This causes problems for directories with single and double quotes in
17 Patch (apply with `patch -p0'):
20 @@ -4167,9 +4167,16 @@ bash_directory_completion_matches (text)
23 qc = rl_dispatching ? rl_completion_quote_character : 0;
24 - dfn = bash_dequote_filename ((char *)text, qc);
25 + /* If rl_completion_found_quote != 0, rl_completion_matches will call the
26 + filename dequoting function, causing the directory name to be dequoted
28 + if (rl_dispatching && rl_completion_found_quote == 0)
29 + dfn = bash_dequote_filename ((char *)text, qc);
32 m1 = rl_completion_matches (dfn, rl_filename_completion_function);
37 if (m1 == 0 || m1[0] == 0)
42 regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
43 looks for to find the patch level (for the sccs version string). */
45 -#define PATCHLEVEL 14
46 +#define PATCHLEVEL 15
48 #endif /* _PATCHLEVEL_H_ */