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

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       type — write a description of command type
13

SYNOPSIS

15       type name...
16

DESCRIPTION

18       The type utility shall indicate how each argument would be  interpreted
19       if used as a command name.
20

OPTIONS

22       None.
23

OPERANDS

25       The following operand shall be supported:
26
27       name      A name to be interpreted.
28

STDIN

30       Not used.
31

INPUT FILES

33       None.
34

ENVIRONMENT VARIABLES

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

ASYNCHRONOUS EVENTS

64       Default.
65

STDOUT

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

STDERR

73       The standard error shall be used only for diagnostic messages.
74

OUTPUT FILES

76       None.
77

EXTENDED DESCRIPTION

79       None.
80

EXIT STATUS

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

CONSEQUENCES OF ERRORS

89       Default.
90
91       The following sections are informative.
92

APPLICATION USAGE

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

EXAMPLES

107       None.
108

RATIONALE

110       None.
111

FUTURE DIRECTIONS

113       None.
114

SEE ALSO

116       command, hash
117
118       The Base Definitions volume of  POSIX.1‐2017,  Chapter  8,  Environment
119       Variables
120
122       Portions  of  this text are reprinted and reproduced in electronic form
123       from IEEE Std 1003.1-2017, Standard for Information Technology --  Por‐
124       table  Operating System Interface (POSIX), The Open Group Base Specifi‐
125       cations Issue 7, 2018 Edition, Copyright (C) 2018 by the  Institute  of
126       Electrical  and  Electronics Engineers, Inc and The Open Group.  In the
127       event of any discrepancy between this version and the original IEEE and
128       The  Open Group Standard, the original IEEE and The Open Group Standard
129       is the referee document. The original Standard can be  obtained  online
130       at http://www.opengroup.org/unix/online.html .
131
132       Any  typographical  or  formatting  errors that appear in this page are
133       most likely to have been introduced during the conversion of the source
134       files  to  man page format. To report such errors, see https://www.ker
135       nel.org/doc/man-pages/reporting_bugs.html .
136
137
138
139IEEE/The Open Group                  2017                             TYPE(1P)
Impressum