*** ../bash-20240609/trap.c Fri May 3 12:12:38 2024 --- trap.c Wed Jun 26 10:41:40 2024 *************** *** 1287,1291 **** restore_pgrp_pipe (save_pipe); # endif ! if (pipeline_pgrp > 0 && ((subshell_environment & (SUBSHELL_ASYNC|SUBSHELL_PIPE)) == 0)) give_terminal_to (pipeline_pgrp, 1); --- 1287,1293 ---- restore_pgrp_pipe (save_pipe); # endif ! /* If the trap command gave the terminal to another process group, ! restore it. XXX - check running_in_background? */ ! if (job_control && pipeline_pgrp > 0 && ((subshell_environment & (SUBSHELL_ASYNC|SUBSHELL_PIPE)) == 0)) give_terminal_to (pipeline_pgrp, 1);