about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-01-18 02:36:39 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-01-20 07:49:25 +0000
commit9df6c728e8e43a20e337debbd17c6509f31f570f (patch)
tree4c362c53a59d6e60addd8bb93d72add789df49ea /Completion
parentcfa8d8bcadbdfdcd976813ef0392539cf3819342 (diff)
downloadzsh-9df6c728e8e43a20e337debbd17c6509f31f570f.tar.gz
zsh-9df6c728e8e43a20e337debbd17c6509f31f570f.tar.xz
zsh-9df6c728e8e43a20e337debbd17c6509f31f570f.zip
37664: docs: Document the completion function _command_names.
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Type/_path_commands3
1 files changed, 3 insertions, 0 deletions
diff --git a/Completion/Unix/Type/_path_commands b/Completion/Unix/Type/_path_commands
index 423563c0d..66795ae0f 100644
--- a/Completion/Unix/Type/_path_commands
+++ b/Completion/Unix/Type/_path_commands
@@ -82,6 +82,9 @@ if [[ -n $need_desc ]]; then
 else
   _wanted commands expl 'external command' compadd "$@" -k commands && ret=0
 fi
+# TODO: this is called from '_command_names -e' which is typically used in
+# contexts (such as _env) that don't accept directory names.  Should this
+# 'if' block move up to the "_command_names -" branch of _command_names?
 if [[ -o path_dirs ]]; then
   local -a path_dirs
   path_dirs=(${^path}/*(/N:t))