Currently I\'m doing some unit tests which are executed from bash. Unit tests are initialized, executed and cleaned up in a bash script. This script usualy contains an init(
fn_exists() { [[ $(type -t $1) == function ]] && return 0 }
update
isFunc () { [[ $(type -t $1) == function ]] } $ isFunc isFunc $ echo $? 0 $ isFunc dfgjhgljhk $ echo $? 1 $ isFunc psgrep && echo yay yay $