462fb2
			     BASH PATCH REPORT
462fb2
			     =================
462fb2
462fb2
Bash-Release:	4.2
462fb2
Patch-ID:	bash42-007
462fb2
462fb2
Bug-Reported-by:	Matthias Klose <doko@debian.org>
462fb2
Bug-Reference-ID:	<4D6FD2AC.1010500@debian.org>
462fb2
Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2011-03/msg00015.html
462fb2
462fb2
Bug-Description:
462fb2
462fb2
When used in contexts where word splitting and quote removal were not
462fb2
performed, such as case statement word expansion, empty strings
462fb2
(either literal or resulting from quoted variables that were unset or
462fb2
null) were not expanded correctly, resulting in failure.
462fb2
462fb2
Patch (apply with `patch -p0'):
462fb2
462fb2
*** ../bash-4.2-patched/subst.c	2011-02-25 12:03:58.000000000 -0500
462fb2
--- subst.c	2011-03-03 14:08:23.000000000 -0500
462fb2
***************
462fb2
*** 4609,4614 ****
462fb2
--- 4611,4617 ----
462fb2
    if (ifs_firstc == 0)
462fb2
  #endif
462fb2
      word->flags |= W_NOSPLIT;
462fb2
+   word->flags |= W_NOSPLIT2;
462fb2
    result = call_expand_word_internal (word, quoted, 0, (int *)NULL, (int *)NULL);
462fb2
    expand_no_split_dollar_star = 0;
462fb2
  
462fb2
*** ../bash-4.2-patched/patchlevel.h	Sat Jun 12 20:14:48 2010
462fb2
--- patchlevel.h	Thu Feb 24 21:41:34 2011
462fb2
***************
462fb2
*** 26,30 ****
462fb2
     looks for to find the patch level (for the sccs version string). */
462fb2
  
462fb2
! #define PATCHLEVEL 6
462fb2
  
462fb2
  #endif /* _PATCHLEVEL_H_ */
462fb2
--- 26,30 ----
462fb2
     looks for to find the patch level (for the sccs version string). */
462fb2
  
462fb2
! #define PATCHLEVEL 7
462fb2
  
462fb2
  #endif /* _PATCHLEVEL_H_ */