summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Builtins/_pids4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index f62c01f65..81b459876 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-08-15  Sven Wischnowsky  <wischnow@zsh.org>
+
+	* 12635: Completion/Builtins/_pids: small improvement to allow
+ 	lists where the pid is not in the first column
+	
 2000-08-14  Bart Schaefer  <schaefer@zsh.org>
 
 	* Andrej: 12623: configure.in, Src/mkmakemod.sh, Src/zsh.h:  Fix
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*"