aboutsummaryrefslogtreecommitdiffstats
path: root/subst.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2013-01-10 19:48:17 -0500
committerChet Ramey <chet.ramey@case.edu>2013-01-10 19:48:17 -0500
commit8dea6e878b47519840d57eb215945f3e1fac7421 (patch)
tree24b97085d6b1ddcd997e63d433bb75e259a4131e /subst.c
parent774d3bf69d419308d56f7082d8bc87bbc90abe74 (diff)
downloadandroid_external_bash-8dea6e878b47519840d57eb215945f3e1fac7421.tar.gz
android_external_bash-8dea6e878b47519840d57eb215945f3e1fac7421.tar.bz2
android_external_bash-8dea6e878b47519840d57eb215945f3e1fac7421.zip
Bash-4.2 patch 41
Diffstat (limited to 'subst.c')
-rw-r--r--subst.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/subst.c b/subst.c
index 937c71d..48c89c1 100644
--- a/subst.c
+++ b/subst.c
@@ -5124,6 +5124,10 @@ process_substitute (string, open_for_read_in_child)
dev_fd_list[parent_pipe_fd] = 0;
#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));
#if !defined (HAVE_DEV_FD)