logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

type.1p (4097B)


  1. '\" et
  2. .TH TYPE "1P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. type
  12. \(em write a description of command type
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. type \fIname\fR...
  17. .fi
  18. .SH DESCRIPTION
  19. The
  20. .IR type
  21. utility shall indicate how each argument would be interpreted if used
  22. as a command name.
  23. .SH OPTIONS
  24. None.
  25. .SH OPERANDS
  26. The following operand shall be supported:
  27. .IP "\fIname\fR" 10
  28. A name to be interpreted.
  29. .SH STDIN
  30. Not used.
  31. .SH "INPUT FILES"
  32. None.
  33. .SH "ENVIRONMENT VARIABLES"
  34. The following environment variables shall affect the execution of
  35. .IR type :
  36. .IP "\fILANG\fP" 10
  37. Provide a default value for the internationalization variables that are
  38. unset or null. (See the Base Definitions volume of POSIX.1\(hy2017,
  39. .IR "Section 8.2" ", " "Internationalization Variables"
  40. for the precedence of internationalization variables used to determine
  41. the values of locale categories.)
  42. .IP "\fILC_ALL\fP" 10
  43. If set to a non-empty string value, override the values of all the
  44. other internationalization variables.
  45. .IP "\fILC_CTYPE\fP" 10
  46. Determine the locale for the interpretation of sequences of bytes of
  47. text data as characters (for example, single-byte as opposed to
  48. multi-byte characters in arguments).
  49. .IP "\fILC_MESSAGES\fP" 10
  50. .br
  51. Determine the locale that should be used to affect the format and
  52. contents of diagnostic messages written to standard error.
  53. .IP "\fINLSPATH\fP" 10
  54. Determine the location of message catalogs for the processing of
  55. .IR LC_MESSAGES .
  56. .IP "\fIPATH\fP" 10
  57. Determine the location of
  58. .IR name ,
  59. as described in the Base Definitions volume of POSIX.1\(hy2017,
  60. .IR "Chapter 8" ", " "Environment Variables".
  61. .SH "ASYNCHRONOUS EVENTS"
  62. Default.
  63. .SH STDOUT
  64. The standard output of
  65. .IR type
  66. contains information about each operand in an unspecified format. The
  67. information provided typically identifies the operand as a shell
  68. built-in, function, alias, or keyword, and where applicable, may
  69. display the operand's pathname.
  70. .SH STDERR
  71. The standard error shall be used only for diagnostic messages.
  72. .SH "OUTPUT FILES"
  73. None.
  74. .SH "EXTENDED DESCRIPTION"
  75. None.
  76. .SH "EXIT STATUS"
  77. The following exit values shall be returned:
  78. .IP "\00" 6
  79. Successful completion.
  80. .IP >0 6
  81. An error occurred.
  82. .SH "CONSEQUENCES OF ERRORS"
  83. Default.
  84. .LP
  85. .IR "The following sections are informative."
  86. .SH "APPLICATION USAGE"
  87. Since
  88. .IR type
  89. must be aware of the contents of the current shell execution
  90. environment (such as the lists of commands, functions, and built-ins
  91. processed by
  92. .IR hash ),
  93. it is always provided as a shell regular built-in. If it is called in
  94. a separate utility execution environment, such as one of the
  95. following:
  96. .sp
  97. .RS 4
  98. .nf
  99. nohup type writer
  100. find . -type f | xargs type
  101. .fi
  102. .P
  103. .RE
  104. it might not produce accurate results.
  105. .SH EXAMPLES
  106. None.
  107. .SH RATIONALE
  108. None.
  109. .SH "FUTURE DIRECTIONS"
  110. None.
  111. .SH "SEE ALSO"
  112. .IR "\fIcommand\fR\^",
  113. .IR "\fIhash\fR\^"
  114. .P
  115. The Base Definitions volume of POSIX.1\(hy2017,
  116. .IR "Chapter 8" ", " "Environment Variables"
  117. .\"
  118. .SH COPYRIGHT
  119. Portions of this text are reprinted and reproduced in electronic form
  120. from IEEE Std 1003.1-2017, Standard for Information Technology
  121. -- Portable Operating System Interface (POSIX), The Open Group Base
  122. Specifications Issue 7, 2018 Edition,
  123. Copyright (C) 2018 by the Institute of
  124. Electrical and Electronics Engineers, Inc and The Open Group.
  125. In the event of any discrepancy between this version and the original IEEE and
  126. The Open Group Standard, the original IEEE and The Open Group Standard
  127. is the referee document. The original Standard can be obtained online at
  128. http://www.opengroup.org/unix/online.html .
  129. .PP
  130. Any typographical or formatting errors that appear
  131. in this page are most likely
  132. to have been introduced during the conversion of the source files to
  133. man page format. To report such errors, see
  134. https://www.kernel.org/doc/man-pages/reporting_bugs.html .