Re: Discussion on wait

2025-01-29 Thread Oğuz
On Wednesday, January 29, 2025, Muhammed Mahmood via Bug reports for the GNU Bourne Again SHell wrote: > > Ideally, there should be a wait -e which waits for every child process but > exits on the first non zero exit code received. > `while wait -n; do :; done' already does that -- Oğuz

Discussion on wait

2025-01-29 Thread Muhammed Mahmood
Hi my name is Muhammed, I wanted to ask why there isn't an option for wait that will take no jobspec or pid but fail if any of the backgrounded processes fail. This kind of functionality does not seem intuitive. When waiting for a specific pid, wait will return the exit code of that process. Maki