Re: [PATCH] consistent BASH_COMMAND, DEBUG trap, xtrace order

2023-08-28 Thread Chet Ramey
On 8/25/23 10:40 PM, Grisha Levit wrote: There is some inconsistency betweeen various command types in the order of (1) setting the value used for BASH_COMMAND (2) running the DEBUG trap and checking its return value and (3) printing the PS4 string. Thanks for the report and patch. -- ``The ly

Re: [PATCH] Use SIGCONT to avoid fg tcsetpgrp() SIGTTIN/SIGTTOU race

2023-08-28 Thread Chet Ramey
On 8/25/23 8:59 PM, Earl Chew wrote: A running background job can be stopped by SIGTTOU or SIGTTIN, just as the fg command issues tcsetprgp() to give the job the controlling terminal. This causes the fg command to appear to have caused the job to stop. Hi. This report doesn't seem different fro