isposix

Un outil pour savoir si une commande est posix - retour accueil

git clone git://bebou.netlib.re/isposix
Log | Files | Refs | README |

type.html (9481B)


      1 <!-- Copyright 2001-2024 IEEE and The Open Group, All Rights Reserved -->
      2 <!DOCTYPE HTML>
      3 <html lang="en">
      4 <head>
      5 <meta name="generator" content="HTML Tidy for HTML5 for Linux version 5.8.0">
      6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      7 <link type="text/css" rel="stylesheet" href="style.css"><!-- Generated by The Open Group rhtm tool v1.2.4 -->
      8 <!-- Copyright (c) 2001-2024 The Open Group, All Rights Reserved -->
      9 <title>type</title>
     10 </head>
     11 <body bgcolor="white">
     12 <div class="NAVHEADER">
     13 <table summary="Header navigation table" class="nav" width="100%" border="0" cellpadding="0" cellspacing="0">
     14 <tr class="nav">
     15 <td class="nav" width="15%" align="left" valign="bottom"><a href="../utilities/tty.html" accesskey="P">&lt;&lt;&lt;
     16 Previous</a></td>
     17 <td class="nav" width="70%" align="center" valign="bottom"><a href="contents.html">Home</a></td>
     18 <td class="nav" width="15%" align="right" valign="bottom"><a href="../utilities/ulimit.html" accesskey="N">Next
     19 &gt;&gt;&gt;</a></td>
     20 </tr>
     21 </table>
     22 <hr align="left" width="100%"></div>
     23 <script language="JavaScript" src="../jscript/codes.js"></script><basefont size="3">
     24 <center><font size="2">The Open Group Base Specifications Issue 8<br>
     25 IEEE Std 1003.1-2024<br>
     26 Copyright © 2001-2024 The IEEE and The Open Group</font></center>
     27 <hr size="2" noshade>
     28 <a name="top" id="top"></a> <a name="type" id="type"></a> <a name="tag_20_130" id="tag_20_130"></a><!-- type -->
     29 <h4 class="mansect"><a name="tag_20_130_01" id="tag_20_130_01"></a>NAME</h4>
     30 <blockquote>type — write a description of command type</blockquote>
     31 <h4 class="mansect"><a name="tag_20_130_02" id="tag_20_130_02"></a>SYNOPSIS</h4>
     32 <blockquote class="synopsis">
     33 <div class="box"><code><tt><sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup> <img src="../images/opt-start.gif" alt=
     34 "[Option Start]" border="0"> type</tt> <i>name</i><tt>... <img src="../images/opt-end.gif" alt="[Option End]" border=
     35 "0"></tt></code></div>
     36 </blockquote>
     37 <h4 class="mansect"><a name="tag_20_130_03" id="tag_20_130_03"></a>DESCRIPTION</h4>
     38 <blockquote>
     39 <p>The <i>type</i> utility shall indicate how each argument would be interpreted if used as a command name.</p>
     40 </blockquote>
     41 <h4 class="mansect"><a name="tag_20_130_04" id="tag_20_130_04"></a>OPTIONS</h4>
     42 <blockquote>
     43 <p>None.</p>
     44 </blockquote>
     45 <h4 class="mansect"><a name="tag_20_130_05" id="tag_20_130_05"></a>OPERANDS</h4>
     46 <blockquote>
     47 <p>The following operand shall be supported:</p>
     48 <dl compact>
     49 <dd></dd>
     50 <dt><i>name</i></dt>
     51 <dd>A name to be interpreted.</dd>
     52 </dl>
     53 </blockquote>
     54 <h4 class="mansect"><a name="tag_20_130_06" id="tag_20_130_06"></a>STDIN</h4>
     55 <blockquote>
     56 <p>Not used.</p>
     57 </blockquote>
     58 <h4 class="mansect"><a name="tag_20_130_07" id="tag_20_130_07"></a>INPUT FILES</h4>
     59 <blockquote>
     60 <p>None.</p>
     61 </blockquote>
     62 <h4 class="mansect"><a name="tag_20_130_08" id="tag_20_130_08"></a>ENVIRONMENT VARIABLES</h4>
     63 <blockquote>
     64 <p>The following environment variables shall affect the execution of <i>type</i>:</p>
     65 <dl compact>
     66 <dd></dd>
     67 <dt><i>LANG</i></dt>
     68 <dd>Provide a default value for the internationalization variables that are unset or null. (See XBD <a href=
     69 "../basedefs/V1_chap08.html#tag_08_02"><i>8.2 Internationalization Variables</i></a> for the precedence of internationalization
     70 variables used to determine the values of locale categories.)</dd>
     71 <dt><i>LC_ALL</i></dt>
     72 <dd>If set to a non-empty string value, override the values of all the other internationalization variables.</dd>
     73 <dt><i>LC_CTYPE</i></dt>
     74 <dd>Determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as
     75 opposed to multi-byte characters in arguments).</dd>
     76 <dt><i>LC_MESSAGES</i></dt>
     77 <dd><br>
     78 Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error.</dd>
     79 <dt><i>NLSPATH</i></dt>
     80 <dd>Determine the location of messages objects and message catalogs.</dd>
     81 <dt><i>PATH</i></dt>
     82 <dd>Determine the location of <i>name</i>, as described in XBD <a href="../basedefs/V1_chap08.html#tag_08"><i>8. Environment
     83 Variables</i></a> .</dd>
     84 </dl>
     85 </blockquote>
     86 <h4 class="mansect"><a name="tag_20_130_09" id="tag_20_130_09"></a>ASYNCHRONOUS EVENTS</h4>
     87 <blockquote>
     88 <p>Default.</p>
     89 </blockquote>
     90 <h4 class="mansect"><a name="tag_20_130_10" id="tag_20_130_10"></a>STDOUT</h4>
     91 <blockquote>
     92 <p>The standard output of <i>type</i> contains information about each operand in an unspecified format. The information provided
     93 typically identifies the operand as a shell built-in, function, alias, or keyword, and where applicable, may display the operand's
     94 pathname.</p>
     95 </blockquote>
     96 <h4 class="mansect"><a name="tag_20_130_11" id="tag_20_130_11"></a>STDERR</h4>
     97 <blockquote>
     98 <p>The standard error shall be used only for diagnostic messages.</p>
     99 </blockquote>
    100 <h4 class="mansect"><a name="tag_20_130_12" id="tag_20_130_12"></a>OUTPUT FILES</h4>
    101 <blockquote>
    102 <p>None.</p>
    103 </blockquote>
    104 <h4 class="mansect"><a name="tag_20_130_13" id="tag_20_130_13"></a>EXTENDED DESCRIPTION</h4>
    105 <blockquote>
    106 <p>None.</p>
    107 </blockquote>
    108 <h4 class="mansect"><a name="tag_20_130_14" id="tag_20_130_14"></a>EXIT STATUS</h4>
    109 <blockquote>
    110 <p>The following exit values shall be returned:</p>
    111 <dl compact>
    112 <dd></dd>
    113 <dt>&nbsp;0</dt>
    114 <dd>Successful completion.</dd>
    115 <dt>&gt;0</dt>
    116 <dd>An error occurred.</dd>
    117 </dl>
    118 </blockquote>
    119 <h4 class="mansect"><a name="tag_20_130_15" id="tag_20_130_15"></a>CONSEQUENCES OF ERRORS</h4>
    120 <blockquote>
    121 <p>Default.</p>
    122 </blockquote>
    123 <hr>
    124 <div class="box"><em>The following sections are informative.</em></div>
    125 <h4 class="mansect"><a name="tag_20_130_16" id="tag_20_130_16"></a>APPLICATION USAGE</h4>
    126 <blockquote>
    127 <p>This utility is required to be intrinsic. See <a href="../utilities/V3_chap01.html#tag_18_07"><i>1.7 Intrinsic Utilities</i></a>
    128 for details.</p>
    129 <p>Since <i>type</i> must be aware of the contents of the current shell execution environment (such as the lists of commands,
    130 functions, and built-ins processed by <a href="../utilities/hash.html"><i>hash</i></a>), it is always provided as a shell regular
    131 built-in. If it is called in a separate utility execution environment, such as one of the following:</p>
    132 <pre>
    133 <tt>nohup type writer
    134 find . -type f -exec type {} +
    135 </tt></pre>
    136 it might not produce accurate results.</blockquote>
    137 <h4 class="mansect"><a name="tag_20_130_17" id="tag_20_130_17"></a>EXAMPLES</h4>
    138 <blockquote>
    139 <p>None.</p>
    140 </blockquote>
    141 <h4 class="mansect"><a name="tag_20_130_18" id="tag_20_130_18"></a>RATIONALE</h4>
    142 <blockquote>
    143 <p>None.</p>
    144 </blockquote>
    145 <h4 class="mansect"><a name="tag_20_130_19" id="tag_20_130_19"></a>FUTURE DIRECTIONS</h4>
    146 <blockquote>
    147 <p>If this utility is directed to display a pathname that contains any bytes that have the encoded value of a &lt;newline&gt;
    148 character when &lt;newline&gt; is a terminator or separator in the output format being used, implementations are encouraged to
    149 treat this as an error. A future version of this standard may require implementations to treat this as an error.</p>
    150 </blockquote>
    151 <h4 class="mansect"><a name="tag_20_130_20" id="tag_20_130_20"></a>SEE ALSO</h4>
    152 <blockquote>
    153 <p><a href="../utilities/command.html#"><i>command</i></a> , <a href="../utilities/hash.html#"><i>hash</i></a></p>
    154 <p>XBD <a href="../basedefs/V1_chap08.html#tag_08"><i>8. Environment Variables</i></a></p>
    155 </blockquote>
    156 <h4 class="mansect"><a name="tag_20_130_21" id="tag_20_130_21"></a>CHANGE HISTORY</h4>
    157 <blockquote>
    158 <p>First released in Issue 2.</p>
    159 </blockquote>
    160 <h4 class="mansect"><a name="tag_20_130_22" id="tag_20_130_22"></a>Issue 8</h4>
    161 <blockquote>
    162 <p>Austin Group Defect 248 is applied, changing a command line in the APPLICATION USAGE section.</p>
    163 <p>Austin Group Defect 251 is applied, encouraging implementations to report an error if a utility is directed to display a
    164 pathname that contains any bytes that have the encoded value of a &lt;newline&gt; character when &lt;newline&gt; is a terminator or
    165 separator in the output format being used.</p>
    166 <p>Austin Group Defect 854 is applied, adding a note to the APPLICATION USAGE section that this utility is required to be
    167 intrinsic.</p>
    168 <p>Austin Group Defect 1122 is applied, changing the description of <i>NLSPATH .</i></p>
    169 </blockquote>
    170 <div class="box"><em>End of informative text.</em></div>
    171 <hr>
    172 <p>&nbsp;</p>
    173 <a href="#top"><span class="topOfPage">return to top of page</span></a><br>
    174 <hr size="2" noshade>
    175 <center><font size="2">UNIX® is a registered Trademark of The Open Group.<br>
    176 POSIX™ is a Trademark of The IEEE.<br>
    177 Copyright © 2001-2024 The IEEE and The Open Group, All Rights Reserved<br>
    178 [ <a href="../mindex.html">Main Index</a> | <a href="../basedefs/contents.html">XBD</a> | <a href=
    179 "../functions/contents.html">XSH</a> | <a href="../utilities/contents.html">XCU</a> | <a href="../xrat/contents.html">XRAT</a>
    180 ]</font></center>
    181 <hr size="2" noshade>
    182 <div class="NAVHEADER">
    183 <table summary="Header navigation table" class="nav" width="100%" border="0" cellpadding="0" cellspacing="0">
    184 <tr class="nav">
    185 <td class="nav" width="15%" align="left" valign="bottom"><a href="../utilities/tty.html" accesskey="P">&lt;&lt;&lt;
    186 Previous</a></td>
    187 <td class="nav" width="70%" align="center" valign="bottom"><a href="contents.html">Home</a></td>
    188 <td class="nav" width="15%" align="right" valign="bottom"><a href="../utilities/ulimit.html" accesskey="N">Next
    189 &gt;&gt;&gt;</a></td>
    190 </tr>
    191 </table>
    192 <hr align="left" width="100%"></div>
    193 </body>
    194 </html>