Hello,
after reading https://www.mail-archive.com/[email protected]/msg00683.html,
I still wonder what the correct behaviour is supposed to be. The last message
lets me think that untrapped signals shouldn't interrupt wait. With the script
#!/bin/dash
sleep 100 &
echo $!
wait $!
echo status: $?
wait still exits immediatly with status 128 when I kill -STOP the output pid
. The other shells I tested still wait for the job and give me:
* bash: 143
* zsh: 147
* busybox ash: 143
(this was using dash 0.5.10.2)
Sincerly,
Hadrien Lacour