*** ../bash-20151106/jobs.c 2015-10-24 18:20:59.000000000 -0400 --- jobs.c 2015-11-14 20:44:23.000000000 -0500 *************** *** 2780,2784 **** #endif /* Don't modify terminal pgrp if we are running in background or a subshell */ ! if (running_in_background == 0 && subshell_environment == 0) give_terminal_to (shell_pgrp, 0); } --- 2789,2793 ---- #endif /* Don't modify terminal pgrp if we are running in background or a subshell */ ! if (running_in_background == 0 && (subshell_environment&(SUBSHELL_ASYNC|SUBSHELL_PIPE)) == 0) give_terminal_to (shell_pgrp, 0); }