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