From 63eb4e7e440945a63672492b99844c5feae0a60c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 22 Mar 2009 11:20:40 +0100 Subject: whichf: return 1 if no function definition file was found --- etc/functions/help | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/functions/help') 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" -- cgit v1.2.3