Blame SOURCES/bash42-041

ff19ae
			     BASH PATCH REPORT
ff19ae
			     =================
ff19ae
ff19ae
Bash-Release:	4.2
ff19ae
Patch-ID:	bash42-041
ff19ae
ff19ae
Bug-Reported-by:	Andrey Borzenkov <arvidjaar@gmail.com>
ff19ae
Bug-Reference-ID:	<20121202205200.2134478e@opensuse.site>
ff19ae
Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2012-12/msg00008.html
ff19ae
ff19ae
Bug-Description:
ff19ae
ff19ae
Process substitution incorrectly inherited a flag that inhibited using the
ff19ae
(local) temporary environment for variable lookups if it was providing
ff19ae
the filename to a redirection.  The intent the flag is to enforce the
ff19ae
Posix command expansion ordering rules.
ff19ae
ff19ae
Patch (apply with `patch -p0'):
ff19ae
ff19ae
*** ../bash-4.2-patched/subst.c	2012-07-14 15:53:20.000000000 -0400
ff19ae
--- subst.c	2012-12-02 22:26:54.000000000 -0500
ff19ae
***************
ff19ae
*** 5125,5128 ****
ff19ae
--- 5129,5136 ----
ff19ae
  #endif /* HAVE_DEV_FD */
ff19ae
  
ff19ae
+   /* subshells shouldn't have this flag, which controls using the temporary
ff19ae
+      environment for variable lookups. */
ff19ae
+   expanding_redir = 0;
ff19ae
+ 
ff19ae
    result = parse_and_execute (string, "process substitution", (SEVAL_NONINT|SEVAL_NOHIST));
ff19ae
  
ff19ae
*** ../bash-4.2-patched/patchlevel.h	Sat Jun 12 20:14:48 2010
ff19ae
--- patchlevel.h	Thu Feb 24 21:41:34 2011
ff19ae
***************
ff19ae
*** 26,30 ****
ff19ae
     looks for to find the patch level (for the sccs version string). */
ff19ae
  
ff19ae
! #define PATCHLEVEL 40
ff19ae
  
ff19ae
  #endif /* _PATCHLEVEL_H_ */
ff19ae
--- 26,30 ----
ff19ae
     looks for to find the patch level (for the sccs version string). */
ff19ae
  
ff19ae
! #define PATCHLEVEL 41
ff19ae
  
ff19ae
  #endif /* _PATCHLEVEL_H_ */