summaryrefslogtreecommitdiff
path: root/etc/functions/help
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-22 11:20:40 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-22 11:20:40 +0100
commit63eb4e7e440945a63672492b99844c5feae0a60c (patch)
tree059c13a1b4b80274a5a8606e474e223c5ec110c0 /etc/functions/help
parente6a363514b8d1f113f280d4a011ad8a996613c84 (diff)
whichf: return 1 if no function definition file was found
Diffstat (limited to 'etc/functions/help')
-rwxr-xr-xetc/functions/help2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/functions/help b/etc/functions/help
index bb061ae..1b338b2 100755
--- a/etc/functions/help
+++ b/etc/functions/help
@@ -3,7 +3,7 @@
if man -w $1 &> /dev/null; then
man $1
-elif [[ -n $(whichf $1) ]]; then
+elif whichf $1 &> /dev/null; then
finfo $1
elif (( ${+builtins[$1]} )); then
man zshbuiltins | less -p " $1"