summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--Functions/Misc/run-help3
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 334bd2e52..aa7534dee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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,
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