mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 22:11:54 +02:00
small improvement to allow lists where the pid is not in the first column (12635)
This commit is contained in:
parent
c88d3a57cf
commit
a070f9bb56
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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*"
|
||||
|
|
Loading…
Reference in a new issue