diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2006-10-15 17:30:13 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2006-10-15 17:30:13 +0000 |
| commit | 38f01e72ea45e0e415d3aed74237b35ebad5dd29 (patch) | |
| tree | a1704a8aeb2ae796e5b3d986d1271a4221f5fac8 /Functions | |
| parent | 22875: completion for a2ensite, a2dissite, a2enmod, a2dismod. (diff) | |
| download | zsh-38f01e72ea45e0e415d3aed74237b35ebad5dd29.tar zsh-38f01e72ea45e0e415d3aed74237b35ebad5dd29.tar.gz zsh-38f01e72ea45e0e415d3aed74237b35ebad5dd29.tar.bz2 zsh-38f01e72ea45e0e415d3aed74237b35ebad5dd29.tar.lz zsh-38f01e72ea45e0e415d3aed74237b35ebad5dd29.tar.xz zsh-38f01e72ea45e0e415d3aed74237b35ebad5dd29.tar.zst zsh-38f01e72ea45e0e415d3aed74237b35ebad5dd29.zip | |
22874: run-help unquoting wasn't consistent
Diffstat (limited to 'Functions')
| -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 |
