rcolebaugh / rpms / bash

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