#!/bin/sh

CODE=0

type -t "$1" 1>/dev/null 2>/dev/null
CODE=$?

if [ "$CODE" -ne "0" ] ; then
    echoerr "Command \"$1\" does not exists."
else
    echo "Command \"$1\" exists."
fi

exit $CODE

