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
29

STDIN

31       Not used.
32

INPUT FILES

34       None.
35

ENVIRONMENT VARIABLES

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

ASYNCHRONOUS EVENTS

67       Default.
68

STDOUT

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

STDERR

76       The standard error shall be used only for diagnostic messages.
77

OUTPUT FILES

79       None.
80

EXTENDED DESCRIPTION

82       None.
83

EXIT STATUS

85       The following exit values shall be returned:
86
87        0     Successful completion.
88
89       >0     An error occurred.
90
91

CONSEQUENCES OF ERRORS

93       Default.
94
95       The following sections are informative.
96

APPLICATION USAGE

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

EXAMPLES

110       None.
111

RATIONALE

113       None.
114

FUTURE DIRECTIONS

116       None.
117

SEE ALSO

119       command, hash
120
122       Portions  of  this text are reprinted and reproduced in electronic form
123       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
124       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
125       Specifications Issue 6, Copyright (C) 2001-2003  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
133
134IEEE/The Open Group                  2003                             TYPE(1P)
Impressum