whence

NAME

whence - display location of commands

SYNOPSIS

whence [-pv] [name ...]

DESCRIPTION

This command is a Korn-shell built-in command.

For each name, the type of command is listed (reserved word, built-in, alias, function, tracked alias or executable). If the -p option is used, a path search is done, even if name is a reserved word or alias. Without the -v option, whence is similar to command -v, except that whence will find reserved words and will not print aliases as alias commands; with the -v option, whence is the same as command -V. Note that for whence, the -p option does not affect the search path used, as it does for command(1). If the type of one or more of the names could not be determined, the exit status is non-zero.