1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-25 05:10:28 +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

View file

@ -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