diff options
Diffstat (limited to 'Functions/Misc')
-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 |