get [−begkmnlLpst] [−c cutoff] [−i list] [−r SID] [−x list] file...
- −r SID
- Indicate the SCCS Identification String (SID) of the version (delta) of an SCCS file to be retrieved. The table shows, for the most useful cases, what version of an SCCS file is retrieved (as well as the SID of the version to be eventually created by delta if the −e option is also used), as a function of the SID specified.
- −c cutoff
- Indicate the cutoff date-time, in the form:
- It is expected that in a future version of this standard the default century inferred from a 2-digit year will change. (This would apply to all commands accepting a 2-digit year as input.)
- Indicate that the get is for the purpose of editing or making a change (delta) to the SCCS file via a subsequent use of delta. The −e option used in a get for a particular version (SID) of the SCCS file shall prevent further get commands from editing on the same SID until delta is executed or the j (joint edit) flag is set in the SCCS file. Concurrent use of get −e for different SIDs is always allowed.
If the g-file generated by get with a −e option is accidentally ruined in the process of editing, it may be regenerated by re-executing the get command with the −k option in place of the −e option. SCCS file protection specified via the ceiling, floor, and authorized user list stored in the SCCS file shall be enforced when the −e option is used.
- Use with the −e 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 flag is not present in the file or if the retrieved delta is not a leaf delta. (A leaf delta is one that has no successors on the SCCS file tree.)
- A branch delta may always be created from a non-leaf delta.
- −i list
- Indicate a list of deltas to be included (forced to be applied) in the creation of the generated file. The list has the following syntax:
<list> ::= <range> | <list> , <range> <range> ::= SID | SID − SID
- −x list
- Indicate a list of deltas to be excluded (forced not to be applied) in the creation of the generated file. See the −i option for the list format.
- Suppress replacement of identification keywords (see below) in the retrieved text by their value. The −k option shall be implied by the −e option.
- Write a delta summary into an l-file.
- Write a delta summary to standard output. All informative output that normally is written to standard output shall be written to standard error instead, unless the −s option is used, in which case it shall be suppressed.
- Write the text retrieved from the SCCS file to the standard output. No g-file shall be created. All informative output that normally goes to the standard output shall go to standard error instead, unless the −s option is used, in which case it shall disappear.
- Suppress all informative output normally written to standard output. However, fatal error messages (which shall always be written to the standard error) shall remain unaffected.
- Precede each text line retrieved from the SCCS file by the SID of the delta that inserted the text line in the SCCS file. The format shall be:
"%s\t%s", <SID>, <text line>
- Precede each generated text line with the %M% identification keyword value (see below). The format shall be:
"%s\t%s", <%M% value>, <text line>
- Suppress the actual retrieval of text from the SCCS file. It is primarily used to generate an l-file, or to verify the existence of a particular SID.
- Use to access the most recently created (top) delta in a given release (for example, −r 1), or release and level (for example, −r 1.2).
- A pathname of an existing SCCS file or a directory. If file is a directory, the get utility shall behave as though each file in the directory were specified as a named file, except that non-SCCS files (last component of the pathname does not begin with s.) and unreadable files shall be silently ignored.
If exactly one file operand appears, and it is '−', the standard input shall be read; each line of the standard input is taken to be the name of an SCCS file to be processed. Non-SCCS files and unreadable files shall be silently ignored.
- Provide a default value for the internationalization variables that are unset or null. (See the Base Definitions volume of POSIX.1‐2008, Section 8.2, Internationalization Variables for the precedence of internationalization variables used to determine the values of locale categories.)
- If set to a non-empty string value, override the values of all the other internationalization variables.
- Determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as opposed to multi-byte characters in arguments and input files).
- Determine the location of message catalogs for the processing of LC_MESSAGES.
- Determine the timezone in which the times and dates written in the SCCS file are evaluated. If the TZ variable is unset or NULL, an unspecified system default timezone is used.
"%s\n%d lines\n", <SID>, <number of lines>
"%s\nnew delta %s\n%d lines\n", <SID accessed>, < SID to be made>, <number of lines>
"%c%c%c %s\t%s %s\n", <code1>, <code2>, <code3>, < SID>, <date-time>, <login>
- A <space> if the delta was applied; '*' otherwise.
- A <space> if the delta was applied or was not applied and ignored; '*' if the delta was not applied and was not ignored.
- A character indicating a special reason why the delta was or was not applied:
- Cut off (by a −c option).
- Date and time (using the format of the date utility's %y/%m/%d %T conversion specification format) of creation.
- Login name of person who created delta.
"%s %s %s %s%s%s\n", <g-file SID>, < SID of new delta>, <login-name of real user>, < date-time>, <i-value>, <x-value>
" −i%s", <−i option option-argument>
" −x%s", <−x option option-argument>
|Determination of SCCS Identification String|
|SID*||−b Keyletter||Other||SID||SID of Delta|
|Specified||Used†||Conditions||Retrieved||to be Created|
|none‡||no||R defaults to mR||mR.mL||mR.(mL+1)|
|none‡||yes||R defaults to mR||mR.mL||mR.mL.(mB+1).1|
|R||no||R > mR||mR.mL||R.1***|
|R||no||R = mR||mR.mL||mR.(mL+1)|
|R||yes||R > mR||mR.mL||mR.mL.(mB+1).1|
|R||yes||R = mR||mR.mL||mR.mL.(mB+1).1|
|R||−||R < mR and R does not exist||hR.mL**||hR.mL.(mB+1).1|
|R||−||Trunk successor in release > R and R exists||R.mL||R.mL.(mB+1).1|
|R.L||no||No trunk successor||R.L||R.(L+1)|
|R.L||yes||No trunk successor||R.L||R.L.(mB+1).1|
|R.L||−||Trunk successor in release ≥ R||R.L||R.L.(mB+1).1|
|R.L.B||no||No branch successor||R.L.B.mS||R.L.B.(mS+1)|
|R.L.B||yes||No branch successor||R.L.B.mS||R.L.(mB+1).1|
|R.L.B.S||no||No branch successor||R.L.B.S||R.L.B.(S+1)|
|R.L.B.S||yes||No branch successor||R.L.B.S||R.L.(mB+1).1|
- R, L, B, and S are the release, level, branch, and sequence components of the SID, respectively; m means maximum. Thus, for example, R.mL means ``the maximum level number within release R''; R.L.(mB+1).1 means ``the first sequence number on the new branch (that is, maximum branch number plus one) of level L within release R''. Note that if the SID specified is of the form R.L, R.L.B, or R.L.B.S, each of the specified components shall exist.
- hR is the highest existing release that is lower than the specified, nonexistent, release R.
- This is used to force creation of the first delta in a new release.
- The −b option is effective only if the b flag is present in the file. An entry of '−' means ``irrelevant''.
- This case applies if the d (default SID) flag is not present in the file. If the d flag is present in the file, then the SID obtained from the d flag is interpreted as if it had been specified on the command line. Thus, one of the other cases in this table applies.
- Module name: either the value of the m flag in the file, or if absent, the name of the SCCS file with the leading s. removed.
- SCCS identification (SID) (%R%.%L% or % R%.% L%.%B%.%S%) of the retrieved text.
- Current date (YY/MM/DD).
- Current date (MM/DD/YY).
- Current time (HH:MM:SS).
- Date newest applied delta was created (YY/MM/DD).
- Date newest applied delta was created (MM/DD/YY).
- Time newest applied delta was created (HH:MM:SS).
- Module type: value of the t flag in the SCCS file.
- SCCS filename.
- SCCS absolute pathname.
- The value of the q flag in the file.
- Current line number. This keyword is intended for identifying messages output by the program, such as ``this should not have happened'' type errors. It is not intended to be used on every line to provide sequence numbers.
- The four-character string "@(#)" recognizable by what.
- A shorthand notation for constructing what strings:
- Another shorthand notation for constructing what strings:
- Successful completion.
- An error occurred.