Blame SOURCES/bash-4.4-pipeline-pgrp.patch

a01f16
diff --git a/subst.c b/subst.c
a01f16
index 1dbfb5e..049962e 100644
a01f16
--- a/subst.c
a01f16
+++ b/subst.c
a01f16
@@ -5011,7 +5011,8 @@ process_substitute (string, open_for_read_in_child)
a01f16
 
a01f16
 #if defined (JOB_CONTROL)
a01f16
   old_pipeline_pgrp = pipeline_pgrp;
a01f16
-  pipeline_pgrp = shell_pgrp;
a01f16
+  if (pipeline_pgrp == 0 || (subshell_environment & (SUBSHELL_PIPE|SUBSHELL_FORK|SUBSHELL_ASYNC)) == 0)
a01f16
+    pipeline_pgrp = shell_pgrp;
a01f16
   save_pipeline (1);
a01f16
 #endif /* JOB_CONTROL */
a01f16
 
a01f16
-- 
a01f16
2.9.3
a01f16