MPE/iX Shell and Utilities Reference Manual, Vol 2
whence(1) MPE/iX Shell and Utilities whence(1)
NAME
whence — tell how shell interprets command name
SYNOPSIS
whence [–v] name ...
DESCRIPTION
whence tells how the shell would interpret each name if used as a command name. Shell
keywords, aliases, functions, built-in commands, and executable files are distinguished. For
executable files, the full path name is given unless the file is in the current directory, in which
case, a relative path name is given.
The main difference between whence and which is that whence is built into the shell and
thus can take into account shell internal commands.
Options
whence accepts the following option:
–v gives a more verbose report.
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
1 Command name could not be found.
2 Failure due to an invalid command line argument.
Messages
Because this utility is built into the
MPE/iX Shell, see the sh(1) man page for a complete list of
error messages that you may receive when using it.
PORTABILITY
On
UNIX systems, whence is built into the KornShell, but is not in the Bourne Shell.
See command(1) for the POSIX.2 replacement.
NOTE
This command is built into the shell.
MPE/iX NOTES
For information on how the current MPE/iX implementation may affect the operation of this
utility, see Appendix A, MPE/iX Implementation Considerations.
1-696 Commands and Utilities