]> git.pld-linux.org Git - packages/bash.git/blob - bash40-035
- rel 2; force readline 6.1
[packages/bash.git] / bash40-035
1                              BASH PATCH REPORT
2                              =================
3
4 Bash-Release:   4.0
5 Patch-ID:       bash40-035
6
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
10
11 Bug-Description:
12
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.
16
17 Patch:
18
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
21 ***************
22 *** 1176,1186 ****
23     WORD_LIST *ret;
24     char *delims;
25   
26 ! #if 0
27 !   delims = "()<>;&| \t\n";    /* shell metacharacters break words */
28 ! #else
29 !   delims = rl_completer_word_break_characters;
30 ! #endif
31     ret = split_at_delims (line, llen, delims, sentinel, nwp, cwp);
32     return (ret);
33   }
34 --- 1176,1188 ----
35     WORD_LIST *ret;
36     char *delims;
37 +   int i, j;
38   
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];
43 !   delims[j] = '\0';
44     ret = split_at_delims (line, llen, delims, sentinel, nwp, cwp);
45 +   free (delims);
46     return (ret);
47   }
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
50 ***************
51 *** 26,30 ****
52      looks for to find the patch level (for the sccs version string). */
53   
54 ! #define PATCHLEVEL 34
55   
56   #endif /* _PATCHLEVEL_H_ */
57 --- 26,30 ----
58      looks for to find the patch level (for the sccs version string). */
59   
60 ! #define PATCHLEVEL 35
61   
62   #endif /* _PATCHLEVEL_H_ */
This page took 0.035012 seconds and 3 git commands to generate.