usage
fi
HAVE_WHICH="no"
if [ -n "$(which which 2> /dev/null)" ]
then
HAVE_WHICH="yes"
find_path() {
[ -z "$1" ] && return 0
if [ "${HAVE_WHICH}" = "yes" ]
local fullpath="$(type -P $1)"
if [ -x "${fullpath}" ]
local fullpath="$(which $1 2> /dev/null)"
echo "${fullpath}"
return 0
for x in /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin