On 12/11/20 5:25 AM, Oğuz wrote:
See:

$ echo $BASH_VERSION
5.1.0(1)-release
$
$ jobs
$ wait -n -p var
$ echo $var $?
66390280 127

If it left `var' unset that would be way more helpful to determine whether
one of the jobs exited with 127 or all the jobs were waited for and none
left.

Thanks for the report. That makes sense.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to