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'):
18 *** ../bash-4.3-patched/bashline.c 2014-02-09 19:56:58.000000000 -0500
19 --- bashline.c 2014-04-25 14:57:52.000000000 -0400
23 qc = rl_dispatching ? rl_completion_quote_character : 0;
24 ! dfn = bash_dequote_filename ((char *)text, qc);
25 m1 = rl_completion_matches (dfn, rl_filename_completion_function);
28 if (m1 == 0 || m1[0] == 0)
31 qc = rl_dispatching ? rl_completion_quote_character : 0;
32 ! /* If rl_completion_found_quote != 0, rl_completion_matches will call the
33 ! filename dequoting function, causing the directory name to be dequoted
35 ! if (rl_dispatching && rl_completion_found_quote == 0)
36 ! dfn = bash_dequote_filename ((char *)text, qc);
39 m1 = rl_completion_matches (dfn, rl_filename_completion_function);
43 if (m1 == 0 || m1[0] == 0)
44 *** ../bash-4.3/patchlevel.h 2012-12-29 10:47:57.000000000 -0500
45 --- patchlevel.h 2014-03-20 20:01:28.000000000 -0400
48 looks for to find the patch level (for the sccs version string). */
50 ! #define PATCHLEVEL 14
52 #endif /* _PATCHLEVEL_H_ */
54 looks for to find the patch level (for the sccs version string). */
56 ! #define PATCHLEVEL 15
58 #endif /* _PATCHLEVEL_H_ */