Re: Possible regression in 'wait' command

2021-05-17 Thread Robert Elz
Date:Mon, 17 May 2021 21:35:49 +0200 From:Alex fxmbsw7 Ratchev Message-ID: | return code 127 by not found cmd or job | .. ? Yes, we always knew that, that was never interesting. The question was why it was happening when the job still existed. Chet has supp

Re: Possible regression in 'wait' command

2021-05-17 Thread Alex fxmbsw7 Ratchev
return code 127 by not found cmd or job .. ? On Sun, May 16, 2021, 22:08 Jonas Alfredsson < jonas.alfreds...@protonmail.com> wrote: > 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

Re: Possible regression in 'wait' command

2021-05-17 Thread Jonas Alfredsson
Amazing! Thank you very much for the swift solution :) Best regards, Jonas ‐‐‐ Original Message ‐‐‐ On Monday, May 17, 2021 12:36 AM, Chet Ramey wrote: > 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

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: 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 -

Re: Possible regression in 'wait' command

2021-05-13 Thread Robert Elz
Date:Thu, 13 May 2021 23:52:20 +0200 From:Alex fxmbsw7 Ratchev Message-ID: | https://www.ibm.com/support/pages/exit-code-127-means-jobs-command-can-not-be-found-or-executed I have no idea what info that reply was intended to add, but it us not useful. | On Th

Re: Possible regression in 'wait' command

2021-05-13 Thread Alex fxmbsw7 Ratchev
https://www.ibm.com/support/pages/exit-code-127-means-jobs-command-can-not-be-found-or-executed On Thu, May 13, 2021, 23:10 Jonas Alfredsson via Bug reports for the GNU Bourne Again SHell wrote: > Configuration Information: > Machine: x86_64 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: