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