rcolebaugh / rpms / bash

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