⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 get.html

📁 IEEE 1003.1-2003, Single Unix Specification v3
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta name="generator" content="HTML Tidy, see www.w3.org"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link type="text/css" rel="stylesheet" href="style.css"><!-- Generated by The Open Group's rhtm tool v1.2.1 --><!-- Copyright (c) 2001-2003 The Open Group, All Rights Reserved --><title>get</title></head><body bgcolor="white"><script type="text/javascript" language="JavaScript" src="../jscript/codes.js"></script><basefont size="3"> <a name="get"></a> <a name="tag_04_60"></a><!-- get --> <!--header start--><center><font size="2">The Open Group Base Specifications Issue 6<br>IEEE Std 1003.1, 2003 Edition<br>Copyright &copy; 2001-2003 The IEEE and The Open Group, All Rights reserved.</font></center><!--header end--><hr size="2" noshade><h4><a name="tag_04_60_01"></a>NAME</h4><blockquote>get - get a version of an SCCS file (<b>DEVELOPMENT</b>)</blockquote><h4><a name="tag_04_60_02"></a>SYNOPSIS</h4><blockquote class="synopsis"><div class="box"><code><tt><sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]" border="0"> get</tt> <b>[</b><tt>-begkmnlLpst</tt><b>][</b><tt>-c</tt> <i>cutoff</i><b>][</b><tt>-i</tt><i>list</i><b>][</b><tt>-r</tt> <i>SID</i><b>][</b><tt>-x</tt> <i>list</i><b>]</b> <i>file</i><tt>... <img src="../images/opt-end.gif" alt="[Option End]" border="0"></tt></code></div></blockquote><h4><a name="tag_04_60_03"></a>DESCRIPTION</h4><blockquote><p>The <i>get</i> utility shall generate a text file from each named SCCS <i>file</i> according to the specifications given by itsoptions.</p><p>The generated text shall normally be written into a file called the <b>g-file</b> whose name is derived from the SCCS filenameby simply removing the leading <tt>"s."</tt> .</p></blockquote><h4><a name="tag_04_60_04"></a>OPTIONS</h4><blockquote><p>The <i>get</i> utility shall conform to the Base Definitions volume of IEEE&nbsp;Std&nbsp;1003.1-2001, <a href="../basedefs/xbd_chap12.html#tag_12_02">Section 12.2, Utility Syntax Guidelines</a>.</p><p>The following options shall be supported:</p><dl compact><dt><b>-r&nbsp;</b> <i>SID</i></dt><dd>Indicate the SCCS Identification String (SID) of the version (delta) of an SCCS file to be retrieved. The table shows, for themost useful cases, what version of an SCCS file is retrieved (as well as the SID of the version to be eventually created by <ahref="../utilities/delta.html"><i>delta</i></a> if the <b>-e</b> option is also used), as a function of the SID specified.</dd><dt><b>-c&nbsp;</b> <i>cutoff</i></dt><dd>Indicate the <i>cutoff</i> date-time, in the form: <pre><i>YY</i><b>[</b><i>MM</i><b>[</b><i>DD</i><b>[</b><i>HH</i><b>[</b><i>MM</i><b>[</b><i>SS</i><b>]]]]]</b></pre><p>For the <i>YY</i> component, values in the range [69,99] shall refer to years 1969 to 1999 inclusive, and values in the range[00,68] shall refer to years 2000 to 2068 inclusive. <basefont size="2"></p><dl><dt><b>Note:</b></dt><dd>It is expected that in a future version of IEEE&nbsp;Std&nbsp;1003.1-2001 the default century inferred from a 2-digit year willchange. (This would apply to all commands accepting a 2-digit year as input.)</dd></dl><basefont size="3"> <p>No changes (deltas) to the SCCS file that were created after the specified <i>cutoff</i> date-time shall be included in thegenerated text file. Units omitted from the date-time default to their maximum possible values; for example, <b>-c</b> 7502 isequivalent to <b>-c</b> 750228235959.</p><p>Any number of non-numeric characters may separate the various 2-digit pieces of the <i>cutoff</i> date-time. This feature allowsthe user to specify a <i>cutoff</i> date in the form: <b>-c</b> "77/2/2&nbsp;9:22:25".</p></dd><dt><b>-e</b></dt><dd>Indicate that the <i>get</i> is for the purpose of editing or making a change (delta) to the SCCS file via a subsequent use of<a href="../utilities/delta.html"><i>delta</i></a>. The <b>-e</b> option used in a <i>get</i> for a particular version (SID) of theSCCS file shall prevent further <i>get</i> commands from editing on the same SID until <a href="../utilities/delta.html"><i>delta</i></a> is executed or the <b>j</b> (joint edit) flag is set in the SCCS file. Concurrent use of<i>get</i> <b>-e</b> for different SIDs is always allowed. <p>If the <b>g-file</b> generated by <i>get</i> with a <b>-e</b> option is accidentally ruined in the process of editing, it may beregenerated by re-executing the <i>get</i> command with the <b>-k</b> option in place of the <b>-e</b> option.</p><p>SCCS file protection specified via the ceiling, floor, and authorized user list stored in the SCCS file shall be enforced whenthe <b>-e</b> option is used.</p></dd><dt><b>-b</b></dt><dd>Use with the <b>-e</b> option to indicate that the new delta should have an SID in a new branch as shown in the table below.This option shall be ignored if the <b>b</b> flag is not present in the file or if the retrieved delta is not a leaf delta. (A leafdelta is one that has no successors on the SCCS file tree.) <basefont size="2"> <dl><dt><b>Note:</b></dt><dd>A branch delta may always be created from a non-leaf delta.</dd></dl><basefont size="3"></dd><dt><b>-i&nbsp;</b> <i>list</i></dt><dd>Indicate a <i>list</i> of deltas to be included (forced to be applied) in the creation of the generated file. The <i>list</i>has the following syntax: <pre><tt>&lt;list&gt; ::= &lt;range&gt; | &lt;list&gt; , &lt;range&gt;&lt;range&gt; ::= SID | SID - SID</tt></pre><p>SID, the SCCS Identification of a delta, may be in any form shown in the &quot;SID Specified&quot; column of the table in the EXTENDEDDESCRIPTION section, except that the result of supplying a partial SID is unspecified. A diagnostic message shall be written if thefirst SID in the range is not an ancestor of the second SID in the range.</p></dd><dt><b>-x&nbsp;</b> <i>list</i></dt><dd>Indicate a <i>list</i> of deltas to be excluded (forced not to be applied) in the creation of the generated file. See the<b>-i</b> option for the <i>list</i> format.</dd><dt><b>-k</b></dt><dd>Suppress replacement of identification keywords (see below) in the retrieved text by their value. The <b>-k</b> option shall beimplied by the <b>-e</b> option.</dd><dt><b>-l</b></dt><dd>Write a delta summary into an <b>l-file</b>.</dd><dt><b>-L</b></dt><dd>Write a delta summary to standard output. All informative output that normally is written to standard output shall be writtento standard error instead, unless the <b>-s</b> option is used, in which case it shall be suppressed.</dd><dt><b>-p</b></dt><dd>Write the text retrieved from the SCCS file to the standard output. No <b>g-file</b> shall be created. All informative outputthat normally goes to the standard output shall go to standard error instead, unless the <b>-s</b> option is used, in which case itshall disappear.</dd><dt><b>-s</b></dt><dd>Suppress all informative output normally written to standard output. However, fatal error messages (which shall always bewritten to the standard error) shall remain unaffected.</dd><dt><b>-m</b></dt><dd>Precede each text line retrieved from the SCCS file by the SID of the delta that inserted the text line in the SCCS file. Theformat shall be: <pre><tt>"%s\t%s", &lt;</tt><i>SID</i><tt>&gt;, &lt;</tt><i>text line</i><tt>&gt;</tt></pre></dd><dt><b>-n</b></dt><dd>Precede each generated text line with the %<b>M</b>% identification keyword value (see below). The format shall be: <pre><tt>"%s\t%s", &lt;</tt><i>%M% value</i><tt>&gt;, &lt;</tt><i>text line</i><tt>&gt;</tt></pre><p>When both the <b>-m</b> and <b>-n</b> options are used, the &lt;<i>text&nbsp;line</i>&gt; shall be replaced by the <b>-m</b>option-generated format.</p></dd><dt><b>-g</b></dt><dd>Suppress the actual retrieval of text from the SCCS file. It is primarily used to generate an <b>l-file</b>, or to verify theexistence of a particular SID.</dd><dt><b>-t</b></dt><dd>Use to access the most recently created (top) delta in a given release (for example, <b>-r 1</b>), or release and level (forexample, <b>-r 1.2</b>).</dd></dl></blockquote><h4><a name="tag_04_60_05"></a>OPERANDS</h4><blockquote><p>The following operands shall be supported:</p><dl compact><dt><i>file</i></dt><dd>A pathname of an existing SCCS file or a directory. If <i>file</i> is a directory, the <i>get</i> utility shall behave asthough each file in the directory were specified as a named file, except that non-SCCS files (last component of the pathname doesnot begin with <b>s.</b>) and unreadable files shall be silently ignored. <p>If exactly one <i>file</i> operand appears, and it is <tt>'-'</tt> , the standard input shall be read; each line of the standardinput is taken to be the name of an SCCS file to be processed. Non-SCCS files and unreadable files shall be silently ignored.</p></dd></dl></blockquote><h4><a name="tag_04_60_06"></a>STDIN</h4><blockquote><p>The standard input shall be a text file used only if the <i>file</i> operand is specified as <tt>'-'</tt> . Each line of thetext file shall be interpreted as an SCCS pathname.</p></blockquote><h4><a name="tag_04_60_07"></a>INPUT FILES</h4><blockquote><p>The SCCS files shall be files of an unspecified format.</p></blockquote><h4><a name="tag_04_60_08"></a>ENVIRONMENT VARIABLES</h4><blockquote><p>The following environment variables shall affect the execution of <i>get</i>:</p><dl compact><dt><i>LANG</i></dt><dd>Provide a default value for the internationalization variables that are unset or null. (See the Base Definitions volume ofIEEE&nbsp;Std&nbsp;1003.1-2001, <a href="../basedefs/xbd_chap08.html#tag_08_02">Section 8.2, Internationalization Variables</a> forthe precedence of internationalization variables used to determine the values of locale categories.)</dd><dt><i>LC_ALL</i></dt><dd>If set to a non-empty string value, override the values of all the other internationalization variables.</dd><dt><i>LC_CTYPE</i></dt><dd>Determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte asopposed to multi-byte characters in arguments and input files).</dd><dt><i>LC_MESSAGES</i></dt><dd>Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error,and informative messages written to standard output (or standard error, if the <b>-p</b> option is used).</dd><dt><i>NLSPATH</i></dt><dd>Determine the location of message catalogs for the processing of <i>LC_MESSAGES .</i></dd><dt><i>TZ</i></dt><dd>Determine the timezone in which the times and dates written in the SCCS file are evaluated. If the <i>TZ</i> variable is unsetor NULL, an unspecified system default timezone is used.</dd></dl></blockquote><h4><a name="tag_04_60_09"></a>ASYNCHRONOUS EVENTS</h4><blockquote><p>Default.</p></blockquote><h4><a name="tag_04_60_10"></a>STDOUT</h4><blockquote><p>For each file processed, <i>get</i> shall write to standard output the SID being accessed and the number of lines retrieved fromthe SCCS file, in the following format:</p><pre><tt>"%s\n%d lines\n", &lt;</tt><i>SID</i><tt>&gt;, &lt;</tt><i>number of lines</i><tt>&gt;</tt></pre><p>If the <b>-e</b> option is used, the SID of the delta to be made shall appear after the SID accessed and before the number oflines generated, in the POSIX locale:</p><pre><tt>"%s\nnew delta %s\n%d lines\n", &lt;</tt><i>SID accessed</i><tt>&gt;,    &lt;</tt><i>SID to be made</i><tt>&gt;, &lt;</tt><i>number of lines</i><tt>&gt;</tt></pre><p>If there is more than one named file or if a directory or standard input is named, each pathname shall be written before each ofthe lines shown in one of the preceding formats:</p><pre><tt>"\n%s:\n", &lt;</tt><i>pathname</i><tt>&gt;</tt></pre><p>If the <b>-L</b> option is used, a delta summary shall be written following the format specified below for <b>l-files</b>.</p><p>If the <b>-i</b> option is used, included deltas shall be listed following the notation, in the POSIX locale:</p><pre><tt>"Included:\n"</tt></pre><p>If the <b>-x</b> option is used, excluded deltas shall be listed following the notation, in the POSIX locale:</p><pre><tt>"Excluded:\n"</tt></pre><p>If the <b>-p</b> or <b>-L</b> options are specified, the standard output shall consist of the text retrieved from the SCCSfile.</p></blockquote><h4><a name="tag_04_60_11"></a>STDERR</h4><blockquote><p>The standard error shall be used only for diagnostic messages, except if the <b>-p</b> or <b>-L</b> options are specified, itshall include all informative messages normally sent to standard output.</p></blockquote><h4><a name="tag_04_60_12"></a>OUTPUT FILES</h4><blockquote><p>Several auxiliary files may be created by <i>get</i>. These files are known generically as the <b>g-file</b>, <b>l-file</b>,<b>p-file</b>, and <b>z-file</b>. The letter before the hyphen is called the <i>tag</i>. An auxiliary filename shall be formed fromthe SCCS filename: the application shall ensure that the last component of all SCCS filenames is of the form <b>s.</b><i>module-name</i>; the auxiliary files shall be named by replacing the leading <b>s</b> with the tag. The <b>g-file</b> shall bean exception to this scheme: the <b>g-file</b> is named by removing the <b>s.</b> prefix. For example, for <b>s.xyz.c</b>, theauxiliary filenames would be <b>xyz.c</b>, <b>l.xyz.c</b>, <b>p.xyz.c</b>, and <b>z.xyz.c</b>, respectively.</p><p>The <b>g-file</b>, which contains the generated text, shall be created in the current directory (unless the <b>-p</b> option isused). A <b>g-file</b> shall be created in all cases, whether or not any lines of text were generated by the <i>get</i>. It shallbe owned by the real user. If the <b>-k</b> option is used or implied, the <b>g-file</b> shall be writable by the owner only(read-only for everyone else); otherwise, it shall be read-only. Only the real user need have write permission in the currentdirectory.</p><p>The <b>l-file</b> shall contain a table showing which deltas were applied in generating the retrieved text. The <b>l-file</b>shall be created in the current directory if the <b>-l</b> option is used; it shall be read-only and it is owned by the real user.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -