rcolebaugh / rpms / bash

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