about summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-10-15 17:30:13 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-10-15 17:30:13 +0000
commit38f01e72ea45e0e415d3aed74237b35ebad5dd29 (patch)
treea1704a8aeb2ae796e5b3d986d1271a4221f5fac8 /Functions
parent86f8a4d8949c67b4cd80ce58d26f8a8f8afb9814 (diff)
downloadzsh-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-help3
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