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 --- ChangeLog | 4 ++++ Functions/Misc/run-help | 3 +++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 334bd2e52..aa7534dee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-10-15 Peter Stephenson + + * 22874: Functions/Misc/run-help: unquoting wasn't consistent. + 2006-10-14 Clint Adams * 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 -- cgit 1.4.1