nalika / rpms / bash

Forked from rpms/bash 2 years ago
Clone

Blame SOURCES/bash42-041

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