diff options
author | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2015-08-20 22:15:14 +0900 |
---|---|---|
committer | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2015-08-20 22:15:14 +0900 |
commit | a85ba2e719052467509dfbb752466b3d9ccfa568 (patch) | |
tree | 712f5098166e6181566cbda8320b2cd2f6e35030 | |
parent | a69994ede1ce9ba608e8deedad548b95235053c5 (diff) | |
download | zsh-a85ba2e719052467509dfbb752466b3d9ccfa568.tar.gz zsh-a85ba2e719052467509dfbb752466b3d9ccfa568.tar.xz zsh-a85ba2e719052467509dfbb752466b3d9ccfa568.zip |
36243: fix a few problems of "_pids -m pattern"
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Unix/Type/_pids | 2 |
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=() |