COMMAND_NAME="$(type -P "$@" 2>/dev/null | cut -d ' ' -f 1)"
[ "x$COMMAND_NAME" = "x" ] && return 1
# Escape the argument so that it can be reused as shell input
# NOTE: this is Bash specific.
COMMAND_NAME="$(type -P "$@" 2>/dev/null | cut -d ' ' -f 1)"
[ "x$COMMAND_NAME" = "x" ] && return 1
# Escape the argument so that it can be reused as shell input
# NOTE: this is Bash specific.