summaryrefslogtreecommitdiffstats
path: root/Functions
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-11-04 19:01:14 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-11-04 19:01:14 +0000
commiteb2657992701023e66fd4bebf8ae113ca87431d6 (patch)
treec7350204f7f48203e76a5a1f7936ad83dcf965a0 /Functions
parentmanual/8541 (diff)
downloadzsh-eb2657992701023e66fd4bebf8ae113ca87431d6.tar
zsh-eb2657992701023e66fd4bebf8ae113ca87431d6.tar.gz
zsh-eb2657992701023e66fd4bebf8ae113ca87431d6.tar.bz2
zsh-eb2657992701023e66fd4bebf8ae113ca87431d6.tar.lz
zsh-eb2657992701023e66fd4bebf8ae113ca87431d6.tar.xz
zsh-eb2657992701023e66fd4bebf8ae113ca87431d6.tar.zst
zsh-eb2657992701023e66fd4bebf8ae113ca87431d6.zip
manual/8545
Diffstat (limited to 'Functions')
-rw-r--r--Functions/Misc/run-help11
1 files changed, 7 insertions, 4 deletions
diff --git a/Functions/Misc/run-help b/Functions/Misc/run-help
index c137b7e4e..4a0f5be8f 100644
--- a/Functions/Misc/run-help
+++ b/Functions/Misc/run-help
@@ -11,16 +11,19 @@
emulate -R zsh
setopt localoptions
+[[ $1 == "." ]] && 1="dot"
+[[ $1 == ":" ]] && 1="colon"
+
# Check whether Util/helpfiles has been used to generate zsh help
if [[ $1 == "-l" ]]
then
- if [[ -n "${HELPDIR:-}" ]]
+ if [[ -n "${HELPDIR:-}" && -d $HELPDIR ]]
then
- echo 'Here is a list of topics for which help is available:'
+ echo "Here is a list of topics for which special help is available:"
echo ""
print -rc $HELPDIR/*(:t)
else
- echo 'There is no list of help topics available at this time'
+ echo "There is no list of special help topics available at this time."
fi
return 0
elif [[ -n "${HELPDIR:-}" && -r $HELPDIR/$1 && $1 != compctl ]]
@@ -29,7 +32,7 @@ then
return $?
fi
-# No zsh help, use "whence" to figure out where else we might look
+# No zsh help; use "whence" to figure out where else we might look
local what places newline='
'
integer i=0 didman=0