rcolebaugh / rpms / bash

Forked from rpms/bash a year ago
Clone

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

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