chiark / gitweb /
Disable all exported shell functions
[bash.git] / debian / patches / bash42-014.diff
1                              BASH PATCH REPORT
2                              =================
3
4 Bash-Release:   4.2
5 Patch-ID:       bash42-014
6
7 Bug-Reported-by:        Shawn Bohrer <sbohrer@rgmadvisors.com>
8 Bug-Reference-ID:       <20110504152320.6E8F28130527@dev1.rgmadvisors.com>
9 Bug-Reference-URL:      http://lists.gnu.org/archive/html/bug-bash/2011-05/msg00018.html
10
11 Bug-Description:
12
13 The regular expression matching operator did not correctly match
14 expressions with an embedded ^A.
15
16 Patch (apply with `patch -p0'):
17
18 --- a/bash/patchlevel.h
19 +++ b/bash/patchlevel.h
20 @@ -25,6 +25,6 @@
21     regexp `^#define[   ]*PATCHLEVEL', since that's what support/mkversion.sh
22     looks for to find the patch level (for the sccs version string). */
23  
24 -#define PATCHLEVEL 13
25 +#define PATCHLEVEL 14
26  
27  #endif /* _PATCHLEVEL_H_ */
28 --- a/bash/pathexp.c
29 +++ b/bash/pathexp.c
30 @@ -196,7 +196,7 @@
31         {
32           if ((qflags & QGLOB_FILENAME) && pathname[i+1] == '/')
33             continue;
34 -         if ((qflags & QGLOB_REGEXP) && ere_char (pathname[i+1]) == 0)
35 +         if (pathname[i+1] != CTLESC && (qflags & QGLOB_REGEXP) && ere_char (pathname[i+1]) == 0)
36             continue;
37           temp[j++] = '\\';
38           i++;