about summary refs log tree commit diff
path: root/Completion
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 /Completion
parenta69994ede1ce9ba608e8deedad548b95235053c5 (diff)
downloadzsh-a85ba2e719052467509dfbb752466b3d9ccfa568.tar.gz
zsh-a85ba2e719052467509dfbb752466b3d9ccfa568.tar.xz
zsh-a85ba2e719052467509dfbb752466b3d9ccfa568.zip
36243: fix a few problems of "_pids -m pattern"
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Type/_pids2
1 files changed, 1 insertions, 1 deletions
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=()