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
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.
18 Patch (apply with `patch -p0'):
20 *** ../bash-4.2-patched/subst.c 2011-02-25 12:03:58.000000000 -0500
21 --- subst.c 2011-03-03 14:08:23.000000000 -0500
27 word->flags |= W_NOSPLIT;
28 + word->flags |= W_NOSPLIT2;
29 result = call_expand_word_internal (word, quoted, 0, (int *)NULL, (int *)NULL);
30 expand_no_split_dollar_star = 0;
32 *** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010
33 --- patchlevel.h Thu Feb 24 21:41:34 2011
36 looks for to find the patch level (for the sccs version string). */
38 ! #define PATCHLEVEL 6
40 #endif /* _PATCHLEVEL_H_ */
42 looks for to find the patch level (for the sccs version string). */
44 ! #define PATCHLEVEL 7
46 #endif /* _PATCHLEVEL_H_ */