aboutsummaryrefslogtreecommitdiff
path: root/Completion/Builtins/_wait
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Builtins/_wait')
-rw-r--r--Completion/Builtins/_wait2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Builtins/_wait b/Completion/Builtins/_wait
index 0fadc087b..41d09c9b2 100644
--- a/Completion/Builtins/_wait
+++ b/Completion/Builtins/_wait
@@ -4,6 +4,6 @@ local list ret=1
compgen -P '%' -j && ret=0
list=("$(ps 2>/dev/null)")
-compgen -y '$list' -s '`ps 2>/dev/null | tail +2 | cut -c1-5`' && ret=0
+compgen -y '$list' -s '${${${(f)"$(ps 2>/dev/null)"}[2,-1]## #}%% *}' && ret=0
return ret