type(1) type(1)
type - write a description of command type
type name...
The type utility indicates how each argument would be interpreted if used
as a command name.
The following operand is supported:
name A name to be interpreted.
ENVIRONMENT VARIABLES [Toc] [Back] The following environment variables affect the execution of type:
PATH Determine the location of name, as described in the XBD
specification, Environment Variables.
The standard output of type contains information about each operand in an
unspecified format. The information provided typically identifies the
operand as a shell built-in, function, alias or keyword, and where
applicable, may display the operand's pathname.
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
Since type must be aware of the contents of the current shell execution
environment (such as the lists of commands, functions and built-ins
processed by hash), it is always provided as a shell regular built-in.
If it is called in a separate utility execution environment, such as one
of the following:
nohup type writer
find . -type f | xargs type
it might not produce accurate results.
sh(1), command(1).
PPPPaaaaggggeeee 1111 [ Back ]
|