summaryrefslogtreecommitdiff
path: root/subst.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2017-01-20 11:47:55 -0500
committerChet Ramey <chet.ramey@case.edu>2017-01-20 11:47:55 -0500
commit4f747edc625815f449048579f6e65869914dd715 (patch)
treebff5b781289df51d6a067965abf345aacc352fe4 /subst.c
parent44bfefc553993613c0aff992bc4f3078d738ee1d (diff)
downloadbash-4f747edc625815f449048579f6e65869914dd715.tar.gz
Bash-4.4 patch 7
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 298187d2..027a13e6 100644
--- a/subst.c
+++ b/subst.c
@@ -9458,6 +9458,10 @@ add_twochars:
tword->flags |= word->flags & (W_ASSIGNARG|W_ASSIGNRHS); /* affects $@ */
if (word->flags & W_COMPLETE)
tword->flags |= W_COMPLETE; /* for command substitutions */
+ if (word->flags & W_NOCOMSUB)
+ tword->flags |= W_NOCOMSUB;
+ if (word->flags & W_NOPROCSUB)
+ tword->flags |= W_NOPROCSUB;
temp = (char *)NULL;