Re: Possible regression in 'wait' command

2021-05-16 Thread Chet Ramey
On 5/16/21 4:07 PM, Jonas Alfredsson wrote: Hi Chet, Thank you for the response. If I read it correctly you agree that this is a regression from how it worked previously? Yes. I am not a very experienced C programmer, so I am a little bit hesitant to dive into the code to try to fix it mysel

Re: Possible regression in 'wait' command

2021-05-16 Thread Jonas Alfredsson
Hi Chet, Thank you for the response. If I read it correctly you agree that this is a regression from how it worked previously? I am not a very experienced C programmer, so I am a little bit hesitant to dive into the code to try to fix it myself. However, I am not certain on how to proceed from he

Re: Possible regression in 'wait' command

2021-05-16 Thread Jonas Alfredsson
Hi Robert, Thank you for your response. > Don't use non standard command extensions > in test scripts like this. Apologies, this is my first reported issue for Bash, so this was just a number I used to have plenty of time when experimenting by myself. I will keep this in mind in the future. > I

Re: $PPID behave differently in 5.1 and 4.3

2021-05-16 Thread Eduardo Bustamante
On Sun, May 16, 2021 at 1:38 AM leodream wrote: > > I created 2 scripts like below > > > Running the test1.sh with bash 5.1 will have different PPID printed by the > last test2.sh call when it is executed in sub-shell.

Re: Possible regression in 'wait' command

2021-05-16 Thread Chet Ramey
On 5/13/21 3:44 PM, Jonas Alfredsson via Bug reports for the GNU Bourne Again SHell wrote: Bash Version: 5.1 Patch Level: 0 Release Status: release Description: If one has a script similar to this: ```bash trap 'echo "Received SIGHUP"' HUP sleep 5m & child_pid=$! wait -n ${child_pid} wait -

$PPID behave differently in 5.1 and 4.3

2021-05-16 Thread leodream
I created 2 scripts like below Running the test1.sh with bash 5.1 will have different PPID printed by the last test2.sh call when it is executed in sub-shell. For bash 4.3, the script will output consistent PPID.