|DELTA(1P)||POSIX Programmer's Manual||DELTA(1P)|
delta [−nps] [−g list] [−m mrlist] [−r SID] [−y[comment]] file...
The following options shall be supported:
- −r SID
- 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 outstanding get commands for editing (get −e) on the same SCCS file were done by the same person (login name). The SID value specified with the −r option can be either the SID specified on the get command line or the SID to be made as reported by the get utility; see get.
- Suppress the report to standard output of the activity associated with each file. See the STDOUT section.
- Specify retention of the edited g-file (normally removed at completion of delta processing).
- −g list
- Specify a list (see get for the definition of list) of deltas that shall be ignored when the file is accessed at the change level (SID) created by this delta.
- −m mrlist
- Specify a modification request (MR) number that the application shall supply as the reason for creating the new delta. This shall be used if the SCCS file has the v flag set; see admin.
If −m is not used and '−' is not specified as a file argument, and the standard input is a terminal, the prompt described in the STDOUT section shall be written to standard output before the standard input is read; if the standard input is not a terminal, no prompt shall be issued.
MRs in a list shall be separated by <blank> characters or escaped <newline> characters. An unescaped <newline> shall terminate the MR list. The escape character is <backslash>.
If the v flag has a value, it shall be taken to be the name of a program which validates the correctness of the MR numbers. If a non-zero exit status is returned from the MR number validation program, the delta utility shall terminate. (It is assumed that the MR numbers were not all valid.)
- Describe the reason for making the delta. The comment shall be an arbitrary group of lines that would meet the definition of a text file. Implementations shall support comments from zero to 512 bytes and may support longer values. A null string (specified as either −y, −y"", or in response to a prompt for a comment) shall be considered a valid comment.
If −y is not specified and '−' is not specified as a file argument, and the standard input is a terminal, the prompt described in the STDOUT section shall be written to standard output before the standard input is read; if the standard input is not a terminal, no prompt shall be issued. An unescaped <newline> shall terminate the comment text. The escape character is <backslash>.
The −y option shall be required if the file operand is specified as '−'.
- Write (to standard output) the SCCS file differences before and after the delta is applied in diff format; see diff.
- A pathname of an existing SCCS file or a directory. If file is a directory, the delta 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 shall be taken to be the name of an SCCS file to be processed. Non-SCCS files and unreadable files shall be silently ignored.
- To read an mrlist or a comment (see the −m and −y options).
- A file operand shall be specified as '−'. In this case, the −y option must be used to specify the comment, and if the SCCS file has the v flag set, the −m option must also be used to specify the MR list.
- 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 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.
- Determine the location of message catalogs for the processing of LC_MESSAGES.
- Determine the timezone in which the time and date are written in the SCCS file. If the TZ variable is unset or NULL, an unspecified system default timezone is used.
- Prompts (see the −m and −y options) in the following formats:
The MR prompt, if written, shall always precede the comments prompt.
- A report of each file's activities (unless the −s option is specified) in the following format:
"%s\n%d inserted\n%d deleted\n%d unchanged\n", <New SID>, <number of lines inserted>, <number of lines deleted>, <number of lines unchanged>
- Successful completion.
- An error occurred.
The following sections are informative.
Problems of a similar nature can also arise for the operation of the get utility, which records the date and time in the file body.
The Base Definitions volume of POSIX.1‐2008, Chapter 8, Environment Variables, Section 12.2, Utility Syntax Guidelines
Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .
|2013||IEEE/The Open Group|