File bash-4.2-proc-subst-tempvars.patch of Package bash.openSUSE_12.2_Update
From: Andrey Borzenkov <arvidjaar@gmail.com>
Subject: fix variable assignment in process substitutions
References: bnc#792460
Upstream: submitted
Temporary variable assignments in process substitutions
were not performed. Fix it. Patch from Chet Ramey <chet.ramey@case.edu>
See http://lists.gnu.org/archive/html/bug-bash/2012-12/msg00011.html
*** ../bash-4.2-patched/subst.c 2012-07-14 15:53:20.000000000 -0400
--- subst.c 2012-12-02 22:26:54.000000000 -0500
***************
*** 5125,5128 ****
--- 5129,5136 ----
#endif /* HAVE_DEV_FD */
+ /* subshells shouldn't have this flag, which controls using the temporary
+ environment for variable lookups. */
+ expanding_redir = 0;
+
result = parse_and_execute (string, "process substitution", (SEVAL_NONINT|SEVAL_NOHIST));