mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-06 09:01:13 +02:00
users/7467: quoted commands weren't found in dispatcher lokoup
This commit is contained in:
parent
fc62495b70
commit
03d14ff12e
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-06-03 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* users/7467: Completion/Base/Core/_dispatch: quoted commands
|
||||
weren't found in dispatcher lookup.
|
||||
|
||||
2004-06-02 Wayne Davison <wayned@users.sourceforge.net>
|
||||
|
||||
* unposted: builtin.c, exec.c, glob.c, hashtable.c, hist.c, init.c,
|
||||
|
|
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue