75871959b063a6f47a98febc692a61a470a4b1ff
[packages.git] / utils / bash / patches / 107-upstream-bash42-007.patch
1                              BASH PATCH REPORT
2                              =================
3
4 Bash-Release:   4.2
5 Patch-ID:       bash42-007
6
7 Bug-Reported-by:        Matthias Klose <doko@debian.org>
8 Bug-Reference-ID:       <4D6FD2AC.1010500@debian.org>
9 Bug-Reference-URL:      http://lists.gnu.org/archive/html/bug-bash/2011-03/msg00015.html
10
11 Bug-Description:
12
13 When used in contexts where word splitting and quote removal were not
14 performed, such as case statement word expansion, empty strings
15 (either literal or resulting from quoted variables that were unset or
16 null) were not expanded correctly, resulting in failure.
17
18 Patch (apply with `patch -p0'):
19
20 --- a/subst.c
21 +++ b/subst.c
22 @@ -4609,6 +4609,7 @@ expand_word_unsplit (word, quoted)
23    if (ifs_firstc == 0)
24  #endif
25      word->flags |= W_NOSPLIT;
26 +  word->flags |= W_NOSPLIT2;
27    result = call_expand_word_internal (word, quoted, 0, (int *)NULL, (int *)NULL);
28    expand_no_split_dollar_star = 0;
29  
30 --- a/patchlevel.h
31 +++ b/patchlevel.h
32 @@ -25,6 +25,6 @@
33     regexp `^#define[   ]*PATCHLEVEL', since that's what support/mkversion.sh
34     looks for to find the patch level (for the sccs version string). */
35  
36 -#define PATCHLEVEL 6
37 +#define PATCHLEVEL 7
38  
39  #endif /* _PATCHLEVEL_H_ */