DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

type(1)


type -- write a description of command type

Synopsis

/u95/u95/bin/type name ...

Description

This shell script executes the builtin command of the same name as implemented by the /u95/bin/sh( ) shell. See ksh(1) for more information on this shell.

The type command indicates how each argument would be interpreted if used as a command name.

Operands


name
A name to be interpreted.

Environment variables

The following environment variables affect the execution of type:

LANG
Provide a default value for the internationalization variables that are unset or null. If LANG is unset or null, the corresponding value from the implementation-specific default locale will be used. If any of the internationalization variables contains an invalid setting, the utility will behave as if none of the variables had been defined.

LC_ALL
If set to a non-empty string value, override the values of all the other internationalization variables.

LC_CTYPE
Determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single- as opposed to multi-byte characters in arguments).

LC_MESSAGES
Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error.

PATH
Used to determine the location of name.

Output

The standard output of type contains information about each operand. 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.

Exit codes

An exit code of ``0'' indicates successful completion; an exit code greater than ``0'' indicates an error.

Usage

If type is called in a separate command execution environment, such as one of the following:
   nohup type writer
   find . -type f | xargs type
it might not produce accurate results.

References

command(1), ksh(1).


© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 02 June 2005