summary refs log tree commit diff
path: root/Completion/Builtins/_pids
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-08-15 08:32:25 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-08-15 08:32:25 +0000
commita070f9bb56983c10d87d2d97239a7f559a7dd534 (patch)
tree9606cd87b9a7dc025315878b2387a957304cbcfd /Completion/Builtins/_pids
parentc88d3a57cfd77ec64ef80ad709ed18a1c7b388c0 (diff)
downloadzsh-a070f9bb56983c10d87d2d97239a7f559a7dd534.tar.gz
zsh-a070f9bb56983c10d87d2d97239a7f559a7dd534.tar.xz
zsh-a070f9bb56983c10d87d2d97239a7f559a7dd534.zip
small improvement to allow lists where the pid is not in the first column (12635)
Diffstat (limited to 'Completion/Builtins/_pids')
-rw-r--r--Completion/Builtins/_pids4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Builtins/_pids b/Completion/Builtins/_pids
index 0d1c0fffc..3e1ad4758 100644
--- a/Completion/Builtins/_pids
+++ b/Completion/Builtins/_pids
@@ -9,11 +9,11 @@ _tags processes || return 1
 
 if [[ "$1" = -m ]]; then
   all=()
-  match="[[:blank:]]#${PREFIX}[0-9]#${SUFFIX}[[:blank:]]*[/[:blank:]]${2}*"
+  match="*[[:blank:]]${PREFIX}[0-9]#${SUFFIX}[[:blank:]]*[/[:blank:]]${2}*"
   shift 2
 elif [[ "$PREFIX$SUFFIX" = [0-9]# ]]; then
   all=()
-  match="[[:blank:]]#${PREFIX}[0-9]#${SUFFIX}[[:blank:]]*"
+  match="*[[:blank:]]${PREFIX}[0-9]#${SUFFIX}[[:blank:]]*"
 else
   all=(-U)
   match="*[[:blank:]]*[[/[:blank:]]$PREFIX*$SUFFIX*"