7 Bug-Reported-by: Freddy Vulto <fvulto@gmail.com>
8 Bug-Reference-ID: <e9c463930909171341p7cbe6e43pa3788ebbe3adec4d@mail.gmail.com>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2009-09/msg00044.html
13 Bash-4.0 incorrectly treated single and double quotes as delimiters rather
14 than introducing quoted strings when splitting the line into words for
15 programmable completion functions.
19 *** ../bash-4.0-patched/pcomplete.c 2009-03-08 21:24:31.000000000 -0400
20 --- pcomplete.c 2009-09-26 16:30:16.000000000 -0400
27 ! delims = "()<>;&| \t\n"; /* shell metacharacters break words */
29 ! delims = rl_completer_word_break_characters;
31 ret = split_at_delims (line, llen, delims, sentinel, nwp, cwp);
39 ! delims = xmalloc (strlen (rl_completer_word_break_characters) + 1);
40 ! for (i = j = 0; rl_completer_word_break_characters[i]; i++)
41 ! if (rl_completer_word_break_characters[i] != '\'' && rl_completer_word_break_characters[i] != '"')
42 ! delims[j++] = rl_completer_word_break_characters[i];
44 ret = split_at_delims (line, llen, delims, sentinel, nwp, cwp);
48 *** ../bash-4.0/patchlevel.h 2009-01-04 14:32:40.000000000 -0500
49 --- patchlevel.h 2009-02-22 16:11:31.000000000 -0500
52 looks for to find the patch level (for the sccs version string). */
54 ! #define PATCHLEVEL 34
56 #endif /* _PATCHLEVEL_H_ */
58 looks for to find the patch level (for the sccs version string). */
60 ! #define PATCHLEVEL 35
62 #endif /* _PATCHLEVEL_H_ */