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:
parent
86f8a4d894
commit
38f01e72ea
2 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue