summaryrefslogtreecommitdiff
path: root/Functions/Misc/run-help
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2008-01-13 17:37:21 +0000
committerBart Schaefer <barts@users.sourceforge.net>2008-01-13 17:37:21 +0000
commit7a678d803ce043c4837230cf8ff40ac8c9af4de1 (patch)
treea8d6777be62723954e403bc002be13c25d00faac /Functions/Misc/run-help
parent298eb1a82c403fd374f31ba2b32f8dc6f3cfad74 (diff)
downloadzsh-7a678d803ce043c4837230cf8ff40ac8c9af4de1.tar.gz
zsh-7a678d803ce043c4837230cf8ff40ac8c9af4de1.zip
24364: local assignment to HELPDIR with a default location.
Diffstat (limited to 'Functions/Misc/run-help')
-rw-r--r--Functions/Misc/run-help4
1 files changed, 2 insertions, 2 deletions
diff --git a/Functions/Misc/run-help b/Functions/Misc/run-help
index de653c5ba..709672ca0 100644
--- a/Functions/Misc/run-help
+++ b/Functions/Misc/run-help
@@ -11,7 +11,7 @@
emulate -R zsh
setopt localoptions
-# HELPDIR should be set to the location of the help files
+local HELPDIR="${HELPDIR:-/usr/share/zsh/$ZSH_VERSION/help}"
[[ $1 == "." ]] && 1="dot"
[[ $1 == ":" ]] && 1="colon"
@@ -19,7 +19,7 @@ setopt localoptions
# Check whether Util/helpfiles has been used to generate zsh help
if [[ $# == 0 || $1 == "-l" ]]
then
- if [[ -n "${HELPDIR:-}" && -d $HELPDIR ]]
+ if [[ -d $HELPDIR ]]
then
echo "Here is a list of topics for which special help is available:"
echo ""