A check for a program or shell command could be executed by a hash or a type command. The hash command works in the bash and dash but not in the ksh. The type command works in bash, dash and ksh but is not POSIX conform.
So try to figure out which command works and define an alias to the command.
A check for a program or shell command could be executed by a hash or a type command. The hash command works in the bash and dash but not in the ksh. The type command works in bash, dash and ksh but is not POSIX conform.
So try to figure out which command works and define an alias to the command.