diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2006-10-15 17:30:13 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2006-10-15 17:30:13 +0000 |
commit | 38f01e72ea45e0e415d3aed74237b35ebad5dd29 (patch) | |
tree | a1704a8aeb2ae796e5b3d986d1271a4221f5fac8 /Functions | |
parent | 86f8a4d8949c67b4cd80ce58d26f8a8f8afb9814 (diff) | |
download | zsh-38f01e72ea45e0e415d3aed74237b35ebad5dd29.tar.gz zsh-38f01e72ea45e0e415d3aed74237b35ebad5dd29.tar.xz zsh-38f01e72ea45e0e415d3aed74237b35ebad5dd29.zip |
22874: run-help unquoting wasn't consistent
Diffstat (limited to 'Functions')
-rw-r--r-- | Functions/Misc/run-help | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Functions/Misc/run-help b/Functions/Misc/run-help index 7dd875842..bae321890 100644 --- a/Functions/Misc/run-help +++ b/Functions/Misc/run-help @@ -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 |