about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2015-08-20 22:15:14 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2015-08-20 22:15:14 +0900
commita85ba2e719052467509dfbb752466b3d9ccfa568 (patch)
tree712f5098166e6181566cbda8320b2cd2f6e35030
parenta69994ede1ce9ba608e8deedad548b95235053c5 (diff)
downloadzsh-a85ba2e719052467509dfbb752466b3d9ccfa568.tar.gz
zsh-a85ba2e719052467509dfbb752466b3d9ccfa568.tar.xz
zsh-a85ba2e719052467509dfbb752466b3d9ccfa568.zip
36243: fix a few problems of "_pids -m pattern"
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Type/_pids2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 73dc3d5ce..eb558ce3d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-08-20  Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
+
+	* 36243: Completion/Unix/Type/_pids: fix a few problems of
+	"_pids -m pattern"
+
 2015-08-19  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
 	* 36247: Completion/Unix/Command/_git: __git_objects: Complete
diff --git a/Completion/Unix/Type/_pids b/Completion/Unix/Type/_pids
index dd8ef441b..8edb33529 100644
--- a/Completion/Unix/Type/_pids
+++ b/Completion/Unix/Type/_pids
@@ -9,7 +9,7 @@ _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:]]-(#c,1))${2}([[:blank:]]*|)"
   shift 2
 elif [[ "$PREFIX$SUFFIX" = ([%-]*|[0-9]#) ]]; then
   all=()