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:
parent
d470453d76
commit
e0980e91be
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue