DELTA(1P)
DELTA(1P) π
okay bestie, welcome to the POSIX Programmer's Manual entry for delta, the icon, the moment, the whole entire vibe. π
β¨ PROLOG β¨
ok so first things first: this manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (bestie, consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux at all. π forewarned is forearmed.
π¦ NAME π¦
delta β make a delta (change) to an SCCS file (DEVELOPMENT)
πΈ SYNOPSIS πΈ
delta [-nps] [-g list] [-m mrlist] [-r SID] [-y[comment]] file...
π DESCRIPTION π
The delta utility shall be used to permanently introduce into the named SCCS files changes that were made to the files retrieved by get (called the g-files, or generated files). like, this is the moment where your edits become canon. no takebacks. π
β¨ OPTIONS β¨
The delta utility shall conform to the Base Definitions volume of POSIX.1β2017, Section 12.2, Utility Syntax Guidelines, except that the -y option has an optional option-argument. This optional option-argument shall not be presented as a separate argument. (yes queen, it has to be glued on. we don't separate them, it's giving codependent in the best way. π«Ά)
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 outstandinggetcommands for editing (get -e) on the same SCCS file were done by the same person (login name). The SID value specified with the-roption can be either the SID specified on thegetcommand line or the SID to be made as reported by thegetutility; seeget. (basically: if you and you are both fighting over the same file, you gotta name your SID. π₯²)-sβ Suppress the report to standard output of the activity associated with each file. See the STDOUT section. (shhh mode. no commentary. just vibes. π€«)-nβ Specify retention of the edited g-file (normally removed at completion ofdeltaprocessing). (it stays!! it lives!! π₯Ή)-g listβ Specify a list (seegetfor 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 thevflag set; seeadmin.
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.) π¨ like okay the validator said no so we're done here, pack it up.
-y[comment]β 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. (empty comment? still valid. we love a low-effort king. π)
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-yoption shall be required if the file operand is specified as-.
-pβ Write (to standard output) the SCCS file differences before and after the delta is applied indiffformat; seediff. (before-and-after pics but for code. the glow-up documented fr fr. πΈ)
π OPERANDS π
The following operand shall be supported:
fileβ A pathname of an existing SCCS file or a directory. If file is a directory, thedeltautility 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 withs.) 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. (silently ignored. not a word. no drama. π)
π STDIN π
The standard input shall be a text file used only in the following cases:
- To read an mrlist or a comment (see the
-mand-yoptions). - A file operand shall be specified as
-. In this case, the-yoption must be used to specify the comment, and if the SCCS file has thevflag set, the-moption must also be used to specify the MR list.
π INPUT FILES π
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 file is <SOH> in the POSIX locale, the results are unspecified. π If this file contains more than 99999 lines, the number of lines recorded in the header for this file shall be 99999 for this delta. (yes, it just caps it at 99999. iconic behavior honestly.)
β ENVIRONMENT VARIABLES β
The following environment variables shall affect the execution of delta:
LANGβ Provide a default value for the internationalization variables that are unset or null. (See the Base Definitions volume of POSIX.1β2017, Section 8.2, Internationalization Variables for the precedence of internationalization variables used to determine the values of locale categories.)LC_ALLβ If set to a non-empty string value, override the values of all the other internationalization variables.LC_CTYPEβ 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).LC_MESSAGESβ 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.NLSPATHβ Determine the location of message catalogs for the processing ofLC_MESSAGES.TZβ Determine the timezone in which the time and date are written in the SCCS file. If theTZvariable is unset or NULL, an unspecified system default timezone is used.
π¦ ASYNCHRONOUS EVENTS π¦
If SIGINT is caught, temporary files shall be cleaned up and delta shall exit with a non-zero exit code. The standard action shall be taken for all other signals; see Section 1.4, Utility Description Defaults. (ctrl-C means we tidy up and dip. clean exit, no mess. π§Ήβ¨)
π STDOUT π
The standard output shall be used only for the following messages in the POSIX locale:
- Prompts (see the
-mand-yoptions) in the following formats:
"MRs? "
"comments? "
The MR prompt, if written, shall always precede the comments prompt.
- A report of each file's activities (unless the
-soption 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>
π STDERR π
The standard error shall be used only for diagnostic messages. (that's it. that's the section. π)
π§ OUTPUT FILES π§
Any SCCS files updated shall be files of an unspecified format.
π EXTENDED DESCRIPTION π
System Date and Time
When a delta is added to an SCCS file, the system date and time shall be recorded for the new delta. If a get is performed using an SCCS file with a date recorded apparently in the future, the behavior is unspecified. β°π°οΈ time travel is not supported bestie.
β¨ EXIT STATUS β¨
The following exit values shall be returned:
0β Successful completion.>0β An error occurred.
π CONSEQUENCES OF ERRORS π
Default.
The following sections are informative.
π«Ά APPLICATION USAGE π«Ά
Problems can arise if the system date and time have been modified (for example, put forward and then back again, or unsynchronized clocks across a network) and can also arise when different values of the TZ environment variable are used.
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.
πΈ EXAMPLES πΈ
None.
π RATIONALE π
None.
π FUTURE DIRECTIONS π
None.
π SEE ALSO π
Section 1.4, Utility Description Defaults, admin, diff, get, prs, rmdel
The Base Definitions volume of POSIX.1β2017, Chapter 8, Environment Variables, Section 12.2, Utility Syntax Guidelines
π COPYRIGHT π
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .
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 .
okay and that's the whole page bestie, we ate and left no crumbs. π
this was brought to you by IEEE/The Open Group, 2017, and the letters DELTA(1P). slay, go make some deltas, mwah π«Άπβ¨
π¦ where this page comes from
- alpine 3.22: man-pages-posix 2017a-r0 Β· custom
- alpine 3.23: man-pages-posix 2017a-r0 Β· custom
- alpine 3.24: man-pages-posix 2017a-r0 Β· custom
- arch rolling: man-pages 6.19-1
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages-posix 2017a
- opensuse-leap 16.0: man-pages-posix 2017a-160000.4.1 Β· SUSE-IEEE
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms