Date: Tue, 30 Mar 2021 07:33:08 +0300 From: =?UTF-8?B?T8SfdXo=?= <oguzismailuy...@gmail.com> Message-ID: <cah7i3lo2lfmre-6q65uqn8y+zvrwm4gmu_hxe7xprb6pce3...@mail.gmail.com>
| The same goes for the job table right? Yes, though there's no posix explanation for that (no expectation there that code would ever want to examine it). | None of ash derivatives (including | netbsd sh) seems to do that right though. `( sleep 3 & ( sleep 1 & wait ) | )' hangs for three seconds instead of one, which doesn't happen on other | shells. This is fixed in the current NetBSD sh, it waits for 1 second there, just as if the job table was immediately cleared in the sub-shell. I forget now just how long ago that fix was installed, or if it got pulled up to the netbsd-9 branch (ie: whether it can be expected in a reasonably up to date 9_STABLE version of sh). Hmm - I just checked, that was fixed years ago, the fixed version should be in NetBSD 8.1 and anything later (but not 8.0 or earlier) ("later" includes everything netbsd 9 and more recent). kre