Date: Fri, 11 Dec 2020 13:25:01 +0300 From: =?UTF-8?B?T8SfdXo=?= <oguzismailuy...@gmail.com> Message-ID: <cah7i3lohfua4asf5-ad2r80hg-p-yzd_9zxomarzkhp8nmq...@mail.gmail.com>
| $ wait -n -p var | $ echo $var $? | 66390280 127 | | If it left `var' unset That's what the NetBSD sh does with this, it always explicitly unsets the var given initially, and then sets it to the pid (actually, when args are given, as in "wait -p var -n 111 222 333 %4" to the arg that was given which exited, and when there are no args, as in your example, to the pid). It is useful, and definitely disambiguates the 127 status case. kre