mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-28 05:00:59 +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>
|
2006-10-14 Clint Adams <clint@zsh.org>
|
||||||
|
|
||||||
* 22875: Completion/Debian/Command/_a2utils: Emmanuel Bouthenot,
|
* 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
|
if [[ $places = *"not found"* && $1 != ${(Q)1} ]]; then
|
||||||
# Different when unquoted, so try stripping quotes.
|
# Different when unquoted, so try stripping quotes.
|
||||||
places=( "${(@f)$(builtin whence -va ${(Q)1})}" )
|
places=( "${(@f)$(builtin whence -va ${(Q)1})}" )
|
||||||
|
if (( ${#places} )); then
|
||||||
|
set -- "${(Q)@}"
|
||||||
|
fi
|
||||||
# Quotation is significant to aliases, so suppress lookup.
|
# Quotation is significant to aliases, so suppress lookup.
|
||||||
noalias=1
|
noalias=1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue