summaryrefslogtreecommitdiff
path: root/jobs.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2020-12-30 13:17:27 -0500
committerChet Ramey <chet.ramey@case.edu>2020-12-30 13:17:27 -0500
commite58dc557e2cc64ce43e65ecd360b5d25913b6b33 (patch)
tree059f84166d9e8ce8d593af979ce7461dfb783aa9 /jobs.c
parent3c5683a47b8ad7abd8232dee8a47d7c821904802 (diff)
downloadbash-e58dc557e2cc64ce43e65ecd360b5d25913b6b33.tar.gz
commit bash-20201226 snapshot
Diffstat (limited to 'jobs.c')
-rw-r--r--jobs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/jobs.c b/jobs.c
index bc5c89fd..83c48a93 100644
--- a/jobs.c
+++ b/jobs.c
@@ -643,6 +643,9 @@ stop_pipeline (async, deferred)
the_pipeline = (PROCESS *)NULL;
newjob->pgrp = pipeline_pgrp;
+
+ /* Invariant: if the shell is executing a command substitution,
+ pipeline_pgrp == shell_pgrp. Other parts of the shell assume this. */
if (pipeline_pgrp != shell_pgrp)
pipeline_pgrp = 0;