1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-28 15:01:21 +02:00

22874: run-help unquoting wasn't consistent

This commit is contained in:
Peter Stephenson 2006-10-15 17:30:13 +00:00
parent 86f8a4d894
commit 38f01e72ea
2 changed files with 7 additions and 0 deletions

@ -1,3 +1,7 @@
2006-10-15 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 22874: Functions/Misc/run-help: unquoting wasn't consistent.
2006-10-14 Clint Adams <clint@zsh.org>
* 22875: Completion/Debian/Command/_a2utils: Emmanuel Bouthenot,

@ -41,6 +41,9 @@ places=( "${(@f)$(builtin whence -va $1)}" )
if [[ $places = *"not found"* && $1 != ${(Q)1} ]]; then
# Different when unquoted, so try stripping quotes.
places=( "${(@f)$(builtin whence -va ${(Q)1})}" )
if (( ${#places} )); then
set -- "${(Q)@}"
fi
# Quotation is significant to aliases, so suppress lookup.
noalias=1
fi