1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 04:30:24 +02:00

35937: wait for process IDs instead of job numbers in parallel mode

This commit is contained in:
Barton E. Schaefer 2015-07-27 09:44:10 -07:00
parent d470453d76
commit e0980e91be
2 changed files with 7 additions and 2 deletions

View file

@ -73,7 +73,7 @@
emulate -L zsh || return 1
local -a opts eof n s l P i
local ZARGS_VERSION="1.4"
local ZARGS_VERSION="1.5"
if zparseopts -a opts -D -- \
-eof::=eof e::=eof \
@ -254,7 +254,7 @@ then
bg='&'
if zmodload -i zsh/parameter 2>/dev/null
then
wait='wait %${(k)^jobstates[(R)running:*]}'
wait='wait ${${jobstates[(R)running:*]/#*:/}/%=*/}'
else
wait='wait'
fi