about summary refs log tree commit diff
path: root/Completion/Base
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2004-06-03 15:14:55 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2004-06-03 15:14:55 +0000
commit03d14ff12e933c6f7c57946db19c19963375c235 (patch)
treec342e0fabb36afc07f66590ffaaf27917b09bdc4 /Completion/Base
parentfc62495b7033fbf716572bcb0ed26959952427ce (diff)
downloadzsh-03d14ff12e933c6f7c57946db19c19963375c235.tar.gz
zsh-03d14ff12e933c6f7c57946db19c19963375c235.tar.xz
zsh-03d14ff12e933c6f7c57946db19c19963375c235.zip
users/7467: quoted commands weren't found in dispatcher lokoup
Diffstat (limited to 'Completion/Base')
-rw-r--r--Completion/Base/Core/_dispatch4
1 files changed, 4 insertions, 0 deletions
diff --git a/Completion/Base/Core/_dispatch b/Completion/Base/Core/_dispatch
index b33c3b413..87c81f899 100644
--- a/Completion/Base/Core/_dispatch
+++ b/Completion/Base/Core/_dispatch
@@ -40,6 +40,10 @@ fi
 ret=1
 for str in "$@"; do
   [[ -n "$str" ]] || continue
+  # The following means we look up the names of commands
+  # after stripping quotes.  This is presumably correct,
+  # but do we need to do the same elsewhere?
+  str=${(Q)str}
   name="$str"
   comp="${_comps[$str]}"
   service="${_services[$str]:-$str}"