Un outil pour savoir si une commande est posix - retour accueil
git clone git://bebou.netlib.re/isposix
Log | Files | Refs | README |
delta.html (17957B)
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>delta</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/dd.html" accesskey="P"><<< 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/df.html" accesskey="N">Next >>></a></td> 19 </tr> 20 </table> 21 <hr align="left" width="100%"></div> 22 <script language="JavaScript" src="../jscript/codes.js"></script><basefont size="3"> 23 <center><font size="2">The Open Group Base Specifications Issue 8<br> 24 IEEE Std 1003.1-2024<br> 25 Copyright © 2001-2024 The IEEE and The Open Group</font></center> 26 <hr size="2" noshade> 27 <a name="top" id="top"></a> <a name="delta" id="delta"></a> <a name="tag_20_32" id="tag_20_32"></a><!-- delta --> 28 <h4 class="mansect"><a name="tag_20_32_01" id="tag_20_32_01"></a>NAME</h4> 29 <blockquote>delta — make a delta (change) to an SCCS file (<b>DEVELOPMENT</b>)</blockquote> 30 <h4 class="mansect"><a name="tag_20_32_02" id="tag_20_32_02"></a>SYNOPSIS</h4> 31 <blockquote class="synopsis"> 32 <div class="box"><code><tt><sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup> <img src="../images/opt-start.gif" alt= 33 "[Option Start]" border="0"> delta</tt> <b>[</b><tt>-nps</tt><b>] [</b><tt>-g</tt> <i>list</i><b>] [</b><tt>-m</tt> 34 <i>mrlist</i><b>] [</b><tt>-r</tt> <i>SID</i><b>] [</b><tt>-y</tt><b>[</b><i>comment</i><b>]]</b> <i>file</i><tt>... <img src= 35 "../images/opt-end.gif" alt="[Option End]" border="0"></tt></code></div> 36 </blockquote> 37 <h4 class="mansect"><a name="tag_20_32_03" id="tag_20_32_03"></a>DESCRIPTION</h4> 38 <blockquote> 39 <p>The <i>delta</i> utility shall be used to permanently introduce into the named SCCS files changes that were made to the files 40 retrieved by <a href="../utilities/get.html"><i>get</i></a> (called the <i>g-files</i>, or generated files).</p> 41 </blockquote> 42 <h4 class="mansect"><a name="tag_20_32_04" id="tag_20_32_04"></a>OPTIONS</h4> 43 <blockquote> 44 <p>The <i>delta</i> utility shall conform to XBD <a href="../basedefs/V1_chap12.html#tag_12_02"><i>12.2 Utility Syntax 45 Guidelines</i></a> , except that the <b>-y</b> option has an optional option-argument. This optional option-argument shall not be 46 presented as a separate argument.</p> 47 <p>The following options shall be supported:</p> 48 <dl compact> 49 <dd></dd> 50 <dt><b>-r </b><i>SID</i></dt> 51 <dd>Uniquely identify which delta is to be made to the SCCS file. The use of this option shall be necessary only if two or more 52 outstanding <a href="../utilities/get.html"><i>get</i></a> commands for editing (<a href="../utilities/get.html"><i>get</i></a> 53 <b>-e</b>) on the same SCCS file were done by the same person (login name). The SID value specified with the <b>-r</b> option can 54 be either the SID specified on the <a href="../utilities/get.html"><i>get</i></a> command line or the SID to be made as reported by 55 the <a href="../utilities/get.html"><i>get</i></a> utility; see <a href="../utilities/get.html#"><i>get</i></a> .</dd> 56 <dt><b>-s</b></dt> 57 <dd>Suppress the report to standard output of the activity associated with each <i>file</i>. See the STDOUT section.</dd> 58 <dt><b>-n</b></dt> 59 <dd>Specify retention of the edited <i>g-file</i> (normally removed at completion of delta processing).</dd> 60 <dt><b>-g </b><i>list</i></dt> 61 <dd>Specify a <i>list</i> (see <a href="../utilities/get.html#"><i>get</i></a> for the definition of <i>list</i>) of deltas that 62 shall be ignored when the file is accessed at the change level (SID) created by this delta.</dd> 63 <dt><b>-m </b><i>mrlist</i></dt> 64 <dd>Specify a modification request (MR) number that the application shall supply as the reason for creating the new delta. This 65 shall be used if the SCCS file has the <b>v</b> flag set; see <a href="../utilities/admin.html#"><i>admin</i></a> . 66 <p>If <b>-m</b> is not used and <tt>'-'</tt> is not specified as a file argument, and the standard input is a terminal, the prompt 67 described in the STDOUT section shall be written to standard output before the standard input is read; if the standard input is not 68 a terminal, no prompt shall be issued.</p> 69 <p>MRs in a list shall be separated by <blank> characters or escaped <newline> characters. An unescaped <newline> 70 shall terminate the MR list. The escape character is <backslash>.</p> 71 <p>If the <b>v</b> flag has a value, it shall be taken to be the name of a program which validates the correctness of the MR 72 numbers. If a non-zero exit status is returned from the MR number validation program, the <i>delta</i> utility shall terminate. (It 73 is assumed that the MR numbers were not all valid.)</p> 74 </dd> 75 <dt><b>-y[</b><i>comment</i><b>]</b></dt> 76 <dd>Describe the reason for making the delta. The <i>comment</i> shall be an arbitrary group of lines that would meet the 77 definition of a text file. Implementations shall support <i>comment</i>s from zero to 512 bytes and may support longer values. A 78 null string (specified as either <b>-y</b>, <b>-y</b><tt>""</tt>, or in response to a prompt for a comment) shall be considered a 79 valid <i>comment</i>. 80 <p>If <b>-y</b> is not specified and <tt>'-'</tt> is not specified as a file argument, and the standard input is a terminal, the 81 prompt described in the STDOUT section shall be written to standard output before the standard input is read; if the standard input 82 is not a terminal, no prompt shall be issued. An unescaped <newline> shall terminate the comment text. The escape character 83 is <backslash>.</p> 84 <p>The <b>-y</b> option shall be required if the <i>file</i> operand is specified as <tt>'-'</tt>.</p> 85 </dd> 86 <dt><b>-p</b></dt> 87 <dd>Write (to standard output) the SCCS file differences before and after the delta is applied in <a href= 88 "../utilities/diff.html"><i>diff</i></a> format; see <a href="../utilities/diff.html#"><i>diff</i></a> .</dd> 89 </dl> 90 </blockquote> 91 <h4 class="mansect"><a name="tag_20_32_05" id="tag_20_32_05"></a>OPERANDS</h4> 92 <blockquote> 93 <p>The following operand shall be supported:</p> 94 <dl compact> 95 <dd></dd> 96 <dt><i>file</i></dt> 97 <dd>A pathname of an existing SCCS file or a directory. If <i>file</i> is a directory, the <i>delta</i> utility shall behave as 98 though each file in the directory were specified as a named file, except that non-SCCS files (last component of the pathname does 99 not begin with <b>s.</b>) and unreadable files shall be silently ignored. 100 <p>If exactly one <i>file</i> operand appears, and it is <tt>'-'</tt>, the standard input shall be read; each line of the standard 101 input shall be taken to be the name of an SCCS file to be processed. Non-SCCS files and unreadable files shall be silently 102 ignored.</p> 103 </dd> 104 </dl> 105 </blockquote> 106 <h4 class="mansect"><a name="tag_20_32_06" id="tag_20_32_06"></a>STDIN</h4> 107 <blockquote> 108 <p>The standard input shall be a text file used only in the following cases:</p> 109 <ul> 110 <li> 111 <p>To read an <i>mrlist</i> or a <i>comment</i> (see the <b>-m</b> and <b>-y</b> options).</p> 112 </li> 113 <li> 114 <p>A <i>file</i> operand shall be specified as <tt>'-'</tt>. In this case, the <b>-y</b> option needs to be used to specify the 115 comment, and if the SCCS file has the <b>v</b> flag set, the <b>-m</b> option also needs to be used to specify the MR list.</p> 116 </li> 117 </ul> 118 </blockquote> 119 <h4 class="mansect"><a name="tag_20_32_07" id="tag_20_32_07"></a>INPUT FILES</h4> 120 <blockquote> 121 <p>Input files shall be text files whose data is to be included in the SCCS files. If the first character of any line of an input 122 file is <SOH> in the POSIX locale, the results are unspecified. If this file contains more than 99999 lines, the number of 123 lines recorded in the header for this file shall be 99999 for this delta.</p> 124 </blockquote> 125 <h4 class="mansect"><a name="tag_20_32_08" id="tag_20_32_08"></a>ENVIRONMENT VARIABLES</h4> 126 <blockquote> 127 <p>The following environment variables shall affect the execution of <i>delta</i>:</p> 128 <dl compact> 129 <dd></dd> 130 <dt><i>LANG</i></dt> 131 <dd>Provide a default value for the internationalization variables that are unset or null. (See XBD <a href= 132 "../basedefs/V1_chap08.html#tag_08_02"><i>8.2 Internationalization Variables</i></a> for the precedence of internationalization 133 variables used to determine the values of locale categories.)</dd> 134 <dt><i>LC_ALL</i></dt> 135 <dd>If set to a non-empty string value, override the values of all the other internationalization variables.</dd> 136 <dt><i>LC_CTYPE</i></dt> 137 <dd>Determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as 138 opposed to multi-byte characters in arguments and input files).</dd> 139 <dt><i>LC_MESSAGES</i></dt> 140 <dd><br> 141 Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error, and 142 informative messages written to standard output.</dd> 143 <dt><i>NLSPATH</i></dt> 144 <dd>Determine the location of messages objects and message catalogs.</dd> 145 <dt><i>TZ</i></dt> 146 <dd>Determine the timezone in which the time and date are written in the SCCS file. If the <i>TZ</i> variable is unset or NULL, an 147 unspecified system default timezone is used.</dd> 148 </dl> 149 </blockquote> 150 <h4 class="mansect"><a name="tag_20_32_09" id="tag_20_32_09"></a>ASYNCHRONOUS EVENTS</h4> 151 <blockquote> 152 <p>If SIGINT is caught, temporary files shall be cleaned up and <i>delta</i> shall exit with a non-zero exit code. The standard 153 action shall be taken for all other signals; see <a href="../utilities/V3_chap01.html#tag_18_04"><i>1.4 Utility Description 154 Defaults</i></a> .</p> 155 </blockquote> 156 <h4 class="mansect"><a name="tag_20_32_10" id="tag_20_32_10"></a>STDOUT</h4> 157 <blockquote> 158 <p>The standard output shall be used only for the following messages in the POSIX locale:</p> 159 <ul> 160 <li> 161 <p>Prompts (see the <b>-m</b> and <b>-y</b> options) in the following formats:</p> 162 <pre> 163 <tt>"MRs? " 164 <br> 165 "comments? " 166 </tt></pre> 167 <p>The MR prompt, if written, shall always precede the comments prompt.</p> 168 </li> 169 <li> 170 <p>A report of each file's activities (unless the <b>-s</b> option is specified) in the following format:</p> 171 <pre> 172 <tt>"%s\n%d inserted\n%d deleted\n%d unchanged\n", <</tt><i>New SID</i><tt>>, 173 <</tt><i>number of lines inserted</i><tt>>, <</tt><i>number of lines deleted</i><tt>>, 174 <</tt><i>number of lines unchanged</i><tt>> 175 </tt></pre></li> 176 </ul> 177 </blockquote> 178 <h4 class="mansect"><a name="tag_20_32_11" id="tag_20_32_11"></a>STDERR</h4> 179 <blockquote> 180 <p>The standard error shall be used only for diagnostic messages.</p> 181 </blockquote> 182 <h4 class="mansect"><a name="tag_20_32_12" id="tag_20_32_12"></a>OUTPUT FILES</h4> 183 <blockquote> 184 <p>Any SCCS files updated shall be files of an unspecified format.</p> 185 </blockquote> 186 <h4 class="mansect"><a name="tag_20_32_13" id="tag_20_32_13"></a>EXTENDED DESCRIPTION</h4> 187 <blockquote> 188 <h5><a name="tag_20_32_13_01" id="tag_20_32_13_01"></a>System Date and Time</h5> 189 <p>When a delta is added to an SCCS file, the system date and time shall be recorded for the new delta. If a <a href= 190 "../utilities/get.html"><i>get</i></a> is performed using an SCCS file with a date recorded apparently in the future, the behavior 191 is unspecified.</p> 192 </blockquote> 193 <h4 class="mansect"><a name="tag_20_32_14" id="tag_20_32_14"></a>EXIT STATUS</h4> 194 <blockquote> 195 <p>The following exit values shall be returned:</p> 196 <dl compact> 197 <dd></dd> 198 <dt> 0</dt> 199 <dd>Successful completion.</dd> 200 <dt>>0</dt> 201 <dd>An error occurred.</dd> 202 </dl> 203 </blockquote> 204 <h4 class="mansect"><a name="tag_20_32_15" id="tag_20_32_15"></a>CONSEQUENCES OF ERRORS</h4> 205 <blockquote> 206 <p>Default.</p> 207 </blockquote> 208 <hr> 209 <div class="box"><em>The following sections are informative.</em></div> 210 <h4 class="mansect"><a name="tag_20_32_16" id="tag_20_32_16"></a>APPLICATION USAGE</h4> 211 <blockquote> 212 <p>Problems can arise if the system date and time have been modified (for example, put forward and then back again, or 213 unsynchronized clocks across a network) and can also arise when different values of the <i>TZ</i> environment variable are 214 used.</p> 215 <p>Problems of a similar nature can also arise for the operation of the <a href="../utilities/get.html"><i>get</i></a> utility, 216 which records the date and time in the file body.</p> 217 </blockquote> 218 <h4 class="mansect"><a name="tag_20_32_17" id="tag_20_32_17"></a>EXAMPLES</h4> 219 <blockquote> 220 <p>None.</p> 221 </blockquote> 222 <h4 class="mansect"><a name="tag_20_32_18" id="tag_20_32_18"></a>RATIONALE</h4> 223 <blockquote> 224 <p>None.</p> 225 </blockquote> 226 <h4 class="mansect"><a name="tag_20_32_19" id="tag_20_32_19"></a>FUTURE DIRECTIONS</h4> 227 <blockquote> 228 <p>If this utility is directed to display a pathname that contains any bytes that have the encoded value of a <newline> 229 character when <newline> is a terminator or separator in the output format being used, implementations are encouraged to 230 treat this as an error. A future version of this standard may require implementations to treat this as an error.</p> 231 <p>If this utility is directed to create a new directory entry that contains any bytes that have the encoded value of a 232 <newline> character, implementations are encouraged to treat this as an error. A future version of this standard may require 233 implementations to treat this as an error.</p> 234 </blockquote> 235 <h4 class="mansect"><a name="tag_20_32_20" id="tag_20_32_20"></a>SEE ALSO</h4> 236 <blockquote> 237 <p><a href="../utilities/V3_chap01.html#tag_18_04"><i>1.4 Utility Description Defaults</i></a> , <a href= 238 "../utilities/admin.html#"><i>admin</i></a> , <a href="../utilities/diff.html#"><i>diff</i></a> , <a href= 239 "../utilities/get.html#"><i>get</i></a> , <a href="../utilities/prs.html#"><i>prs</i></a> , <a href= 240 "../utilities/rmdel.html#"><i>rmdel</i></a></p> 241 <p>XBD <a href="../basedefs/V1_chap08.html#tag_08"><i>8. Environment Variables</i></a> , <a href= 242 "../basedefs/V1_chap12.html#tag_12_02"><i>12.2 Utility Syntax Guidelines</i></a></p> 243 </blockquote> 244 <h4 class="mansect"><a name="tag_20_32_21" id="tag_20_32_21"></a>CHANGE HISTORY</h4> 245 <blockquote> 246 <p>First released in Issue 2.</p> 247 </blockquote> 248 <h4 class="mansect"><a name="tag_20_32_22" id="tag_20_32_22"></a>Issue 5</h4> 249 <blockquote> 250 <p>The output format description in the STDOUT section is corrected.</p> 251 </blockquote> 252 <h4 class="mansect"><a name="tag_20_32_23" id="tag_20_32_23"></a>Issue 6</h4> 253 <blockquote> 254 <p>The APPLICATION USAGE section is added.</p> 255 <p>The normative text is reworded to avoid use of the term "must" for application requirements.</p> 256 <p>The Open Group Base Resolution bwg2001-007 is applied as follows:</p> 257 <ul> 258 <li> 259 <p>The use of <tt>'-'</tt> as a file argument is clarified.</p> 260 </li> 261 <li> 262 <p>The use of STDIN is added.</p> 263 </li> 264 <li> 265 <p>The ASYNCHRONOUS EVENTS section is updated to remove the implicit requirement that implementations re-signal themselves when 266 catching a normally fatal signal.</p> 267 </li> 268 <li> 269 <p>New text is added to the INPUT FILES section warning that the maximum lines recorded in the file is 99999.</p> 270 </li> 271 </ul> 272 <p>New text is added to the EXTENDED DESCRIPTION and APPLICATION USAGE sections regarding how the system date and time may be taken 273 into account, and the <i>TZ</i> environment variable is added to the ENVIRONMENT VARIABLES section as per The Open Group Base 274 Resolution bwg2001-007.</p> 275 </blockquote> 276 <h4 class="mansect"><a name="tag_20_32_24" id="tag_20_32_24"></a>Issue 7</h4> 277 <blockquote> 278 <p>SD5-XCU-ERN-97 is applied, updating the SYNOPSIS.</p> 279 </blockquote> 280 <h4 class="mansect"><a name="tag_20_32_25" id="tag_20_32_25"></a>Issue 8</h4> 281 <blockquote> 282 <p>Austin Group Defect 251 is applied, encouraging implementations to behave as follows:</p> 283 <ol type="a"> 284 <li> 285 <p>Report an error if a utility is directed to display a pathname that contains any bytes that have the encoded value of a 286 <newline> character when <newline> is a terminator or separator in the output format being used.</p> 287 </li> 288 <li> 289 <p>Disallow the creation of filenames containing any bytes that have the encoded value of a <newline> character.</p> 290 </li> 291 </ol> 292 <p>Austin Group Defect 1122 is applied, changing the description of <i>NLSPATH .</i></p> 293 </blockquote> 294 <div class="box"><em>End of informative text.</em></div> 295 <hr> 296 <p> </p> 297 <a href="#top"><span class="topOfPage">return to top of page</span></a><br> 298 <hr size="2" noshade> 299 <center><font size="2">UNIX® is a registered Trademark of The Open Group.<br> 300 POSIX™ is a Trademark of The IEEE.<br> 301 Copyright © 2001-2024 The IEEE and The Open Group, All Rights Reserved<br> 302 [ <a href="../mindex.html">Main Index</a> | <a href="../basedefs/contents.html">XBD</a> | <a href= 303 "../functions/contents.html">XSH</a> | <a href="../utilities/contents.html">XCU</a> | <a href="../xrat/contents.html">XRAT</a> 304 ]</font></center> 305 <hr size="2" noshade> 306 <div class="NAVHEADER"> 307 <table summary="Header navigation table" class="nav" width="100%" border="0" cellpadding="0" cellspacing="0"> 308 <tr class="nav"> 309 <td class="nav" width="15%" align="left" valign="bottom"><a href="../utilities/dd.html" accesskey="P"><<< 310 Previous</a></td> 311 <td class="nav" width="70%" align="center" valign="bottom"><a href="contents.html">Home</a></td> 312 <td class="nav" width="15%" align="right" valign="bottom"><a href="../utilities/df.html" accesskey="N">Next >>></a></td> 313 </tr> 314 </table> 315 <hr align="left" width="100%"></div> 316 </body> 317 </html>