diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-08-15 09:31:18 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-08-15 09:31:18 +0000 |
commit | 0352b80797d54dbfdd6f7f27e24980b0d8c0b666 (patch) | |
tree | 3db539db7cff1d5a97ee1e75483de6cdde11ad8d /Doc/Zsh/compsys.yo | |
parent | a070f9bb56983c10d87d2d97239a7f559a7dd534 (diff) | |
download | zsh-0352b80797d54dbfdd6f7f27e24980b0d8c0b666.tar.gz zsh-0352b80797d54dbfdd6f7f27e24980b0d8c0b666.tar.xz zsh-0352b80797d54dbfdd6f7f27e24980b0d8c0b666.zip |
call ps only once and be more intelligent when finding the PIDs (12640)
Diffstat (limited to 'Doc/Zsh/compsys.yo')
-rw-r--r-- | Doc/Zsh/compsys.yo | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo index 4c83d45a3..65297bf70 100644 --- a/Doc/Zsh/compsys.yo +++ b/Doc/Zsh/compsys.yo @@ -744,11 +744,6 @@ kindex(processes, completion tag) item(tt(processes))( for process identifiers ) -kindex(processes-list, completion tag) -item(tt(processes-list))( -used to look up the tt(command) style when generating the list to -display for process identifiers -) kindex(processes-names, completion tag) item(tt(processes-names))( used to look up the tt(command) style when generating the names of @@ -934,11 +929,14 @@ example to avoid calling a shell function with the same name as an external command. As an example, the function generating process IDs as matches uses this -style with the tt(processes) tag to generate the IDs to complete and when -the tt(verbose) style is `true', it uses this style with the -tt(processes-list) tag to generate the strings to display. When using -different values for these two tags one should ensure that the process -IDs appear in the same order in both lists. +style with the tt(processes) tag to generate the IDs to complete and +the list of processes to display (if the tt(verbose) style is `true'). +The list produced by the command should look like the output of the +tt(ps) command. The first line is not displayed, but is searched for +the string `tt(PID)' (or `tt(pid)') to find the position of the +process IDs in the following lines. If the line does not contain +`tt(PID)', the first numbers in each of the other lines are taken as the +process IDs to complete. ) kindex(completer, completion style) item(tt(completer))( |