1TYPE(P)                    POSIX Programmer's Manual                   TYPE(P)
2
3
4

NAME

6       type - write a description of command type
7

SYNOPSIS

9       type name...
10

DESCRIPTION

12       The  type utility shall indicate how each argument would be interpreted
13       if used as a command name.
14

OPTIONS

16       None.
17

OPERANDS

19       The following operand shall be supported:
20
21       name   A name to be interpreted.
22
23

STDIN

25       Not used.
26

INPUT FILES

28       None.
29

ENVIRONMENT VARIABLES

31       The following environment variables shall affect the execution of type:
32
33       LANG   Provide a default value for the  internationalization  variables
34              that  are  unset  or  null.  (See the Base Definitions volume of
35              IEEE Std 1003.1-2001, Section  8.2,  Internationalization  Vari‐
36              ables  for the precedence of internationalization variables used
37              to determine the values of locale categories.)
38
39       LC_ALL If set to a non-empty string value, override the values  of  all
40              the other internationalization variables.
41
42       LC_CTYPE
43              Determine  the  locale  for  the  interpretation of sequences of
44              bytes of text data as characters (for  example,  single-byte  as
45              opposed to multi-byte characters in arguments).
46
47       LC_MESSAGES
48              Determine  the  locale  that should be used to affect the format
49              and contents of diagnostic messages written to standard error.
50
51       NLSPATH
52              Determine the location of message catalogs for the processing of
53              LC_MESSAGES .
54
55       PATH   Determine the location of name, as described in the Base Defini‐
56              tions volume of  IEEE Std 1003.1-2001,  Chapter  8,  Environment
57              Variables.
58
59

ASYNCHRONOUS EVENTS

61       Default.
62

STDOUT

64       The  standard output of type contains information about each operand in
65       an unspecified format. The information  provided  typically  identifies
66       the operand as a shell built-in, function, alias, or keyword, and where
67       applicable, may display the operand's pathname.
68

STDERR

70       The standard error shall be used only for diagnostic messages.
71

OUTPUT FILES

73       None.
74

EXTENDED DESCRIPTION

76       None.
77

EXIT STATUS

79       The following exit values shall be returned:
80
81        0     Successful completion.
82
83       >0     An error occurred.
84
85

CONSEQUENCES OF ERRORS

87       Default.
88
89       The following sections are informative.
90

APPLICATION USAGE

92       Since type must be aware of the contents of the current shell execution
93       environment  (such  as  the lists of commands, functions, and built-ins
94       processed by hash), it is always provided as a shell regular  built-in.
95       If  it  is  called in a separate utility execution environment, such as
96       one of the following:
97
98
99              nohup type writer
100              find . -type f | xargs type
101       it might not produce accurate results.
102

EXAMPLES

104       None.
105

RATIONALE

107       None.
108

FUTURE DIRECTIONS

110       None.
111

SEE ALSO

113       command , hash
114
116       Portions of this text are reprinted and reproduced in  electronic  form
117       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
118       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
119       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
120       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
121       event of any discrepancy between this version and the original IEEE and
122       The Open Group Standard, the original IEEE and The Open Group  Standard
123       is  the  referee document. The original Standard can be obtained online
124       at http://www.opengroup.org/unix/online.html .
125
126
127
128IEEE/The Open Group                  2003                              TYPE(P)
Impressum