mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-19 11:31:26 +01: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
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue