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/finfo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/functions/finfo') diff --git a/etc/functions/finfo b/etc/functions/finfo index 87b8acd..a73606d 100755 --- a/etc/functions/finfo +++ b/etc/functions/finfo @@ -3,7 +3,7 @@ ## Assume that a function begins with an introduction, and print it typeset line -[[ -n $(whichf $1) ]] || return 1 +whichf $1 &> /dev/null || return 1 while read line; do [[ $line == \#* ]] || break -- cgit v1.2.3