From 38f01e72ea45e0e415d3aed74237b35ebad5dd29 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 15 Oct 2006 17:30:13 +0000 Subject: 22874: run-help unquoting wasn't consistent --- Functions/Misc/run-help | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Functions') 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 -- cgit 1.4.1