1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01: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

@ -1,3 +1,8 @@
2015-07-27 Barton E. Schaefer <schaefer@zsh.org>
* 35937: Functions/Misc/zargs: wait for process IDs instead of
job numbers in parallel mode, in case zargs is in a pipeline
2015-07-26 Daniel Shahaf <d.s@daniel.shahaf.name>
* 35274 (plus tweaks): Completion/BSD/Command/_watch-snoop

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