PRS(1P)
PRS(1P) β¨ POSIX Programmer's Manual β¨
PROLOG π«Ά
Okay so first things first: this manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ β consult the corresponding Linux manual page for the deets on Linux behavior β or the interface may not be implemented on Linux at all. No cap.
NAME πΈ
prs β print an SCCS file (DEVELOPMENT)
SYNOPSIS π¦
prs [-a] [-d dataspec] [-r[SID]] file...
prs [-e|-l] -c cutoff [-d dataspec] file...
prs [-e|-l] -r[SID] [-d dataspec] file...
DESCRIPTION β¨
The prs utility shall write to standard output parts or all of an SCCS file in a user-supplied format. It's giving custom output, bestie.
OPTIONS π
The prs utility shall conform to the Base Definitions volume of POSIX.1β2017, Section 12.2, Utility Syntax Guidelines, except that the -r option has an optional option-argument. This optional option-argument cannot be presented as a separate argument. The following options shall be supported:
-d dataspecβ Specify the output data specification. Thedataspecshall be a string consisting of SCCS file data keywords (see Data Keywords) interspersed with optional user-supplied text.-r[SID]β Specify the SCCS identification string (SID) of a delta for which information is desired. If no SID option-argument is specified, the SID of the most recently created delta shall be assumed.-eβ Request information for all deltas created earlier than and including the delta designated via the-roption or the date-time given by the-coption.-lβ Request information for all deltas created later than and including the delta designated via the-roption or the date-time given by the-coption.-c cutoffβ Indicate the cutoff date-time, in the form:
YY[MM[DD[HH[MM[SS]]]]]
For the YY 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.
Note: 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.)
No changes (deltas) to the SCCS file that were created after the specified cutoff date-time shall be included in the output. Units omitted from the date-time default to their maximum possible values; for example, -c 7502 is equivalent to -c 750228235959.
-aβ Request writing of information for both removedβthat is,delta type=R(seermdel)βand existingβthat is,delta type=Dβdeltas. If the-aoption is not specified, information for existing deltas only shall be provided.
OPERANDS π
The following operand shall be supported:
fileβ A pathname of an existing SCCS file or a directory. Iffileis a directory, theprsutility 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.
STDIN π
The standard input shall be a text file used only when the file operand is specified as -. Each line of the text file shall be interpreted as an SCCS pathname.
INPUT FILES π
Any SCCS files displayed are files of an unspecified format.
ENVIRONMENT VARIABLES π¦
The following environment variables shall affect the execution of prs:
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.NLSPATHβ Determine the location of message catalogs for the processing ofLC_MESSAGES.
ASYNCHRONOUS EVENTS β‘
Default.
STDOUT π
The standard output shall be a text file whose format is dependent on the data keywords specified with the -d option.
Data Keywords β¨
Data keywords specify which parts of an SCCS file shall be retrieved and output. All parts of an SCCS file have an associated data keyword. A data keyword may appear in a dataspec multiple times.
The information written by prs shall consist of:
- The user-supplied text
- Appropriate values (extracted from the SCCS file) substituted for the recognized data keywords in the order of appearance in the
dataspec
The format of a data keyword value shall either be simple ('S'), in which keyword substitution is direct, or multi-line ('M').
User-supplied text shall be any text other than recognized data keywords. A <tab> shall be specified by \t and <newline> by \n. When the -r option is not specified, the default dataspec shall be:
:PN::\n\n
and the following dataspec shall be used for each selected delta:
:Dt:\t:DL:\nMRs:\n:MR:COMMENTS:\n:C:
SCCS File Data Keywords π
The table header, before the rows show up, has these columns: Keyword, Data Item, File Section, Value, and Format. The actual keyword rows? They're in part 2, bestie, and they're a whole meal π
π.
okay bestie, the table keeps going, and here's every single keyword, no skips π
:Dt:β Delta information β Delta Table βSee below*β S:DL:β Delta line statistics β"β:Li:/:Ld:/:Lu:β S:Li:β Lines inserted by Delta β"βnnnnn***β S:Ld:β Lines deleted by Delta β"βnnnnn***β S:Lu:β Lines unchanged by Delta β"βnnnnn***β S:DT:β Delta type β"βD or Rβ S:I:β SCCS ID string (SID) β"βSee below**β S:R:β Release number β"βnnnnβ S:L:β Level number β"βnnnnβ S:B:β Branch number β"βnnnnβ S:S:β Sequence number β"βnnnnβ S:D:β Date delta created β"β:Dy:/:Dm:/:Dd:β S:Dy:β Year delta created β"βnnβ S:Dm:β Month delta created β"βnnβ S:Dd:β Day delta created β"βnnβ S:T:β Time delta created β"β:Th:::Tm:::Ts:β S:Th:β Hour delta created β"βnnβ S:Tm:β Minutes delta created β"βnnβ S:Ts:β Seconds delta created β"βnnβ S:P:β Programmer who created Delta β"βlognameβ S:DS:β Delta sequence number β"βnnnnβ S:DP:β Predecessor Delta sequence number β"βnnnnβ S:DI:β Sequence number of deltas included, excluded, or ignored β"β:Dn:/:Dx:/:Dg:β S:Dn:β Deltas included (sequence #) β"β:DS: :DS: ...β S:Dx:β Deltas excluded (sequence #) β"β:DS: :DS: ...β S:Dg:β Deltas ignored (sequence #) β"β:DS: :DS: ...β S:MR:β MR numbers for delta β"βtextβ M:C:β Comments for delta β"βtextβ M:UN:β User names βUser Namesβtextβ M:FL:β Flag list βFlagsβtextβ M:Y:β Module type flag β"βtextβ S:MF:β MR validation flag β"βyes or noβ S:MP:β MR validation program name β"βtextβ S:KF:β Keyword error, warning flag β"βyes or noβ S:KV:β Keyword validation string β"βtextβ S:BF:β Branch flag β"βyes or noβ S:J:β Joint edit flag β"βyes or noβ S:LK:β Locked releases β"β:R: ...β S:Q:β User-defined keyword β"βtextβ S:M:β Module name β"βtextβ S:FB:β Floor boundary β"β:R:β S:CB:β Ceiling boundary β"β:R:β S:Ds:β Default SID β"β:I:β S:ND:β Null delta flag β"βyes or noβ S:FD:β File descriptive text βCommentsβtextβ M:BD:β Body βBodyβtextβ M:GB:β Gotten body β"βtextβ M:W:β A form of what string βN/Aβ:Z::M:\t:I:β S:A:β A form of what string βN/Aβ:Z::Y: :M: :I::Z:β S:Z:β what string delimiter βN/Aβ@(#)β S:F:β SCCS filename βN/Aβtextβ S:PN:β SCCS file pathname βN/Aβtextβ S
footnote tea, don't skip bestie:
*β:Dt:=:DT: :I: :D: :T: :P: :DS: :DP:β that's the whole formula, periodt π**β:R:.:L:.:B:.:S:if the delta is a branch delta (:BF:==yes);:R:.:L:if the delta is not a branch delta (:BF:==no) π¦***β the line stats are capped at99999. Like, if100000lines were unchanged in a certain revision,:Lu:shall produce the value99999. no cap, literally π
π STDERR π
The standard error shall be used only for diagnostic messages. that's it. no chit-chat. π
π¦ OUTPUT FILES π¦
None. literally zero, nada, zilch. π
π EXTENDED DESCRIPTION π
None. we're not doing extra credit here, bestie. π
β¨ EXIT STATUS β¨
The following exit values shall be returned:
0β Successful completion. you ate that. π>0β An error occurred. not the vibe, but okay. π
πΈ CONSEQUENCES OF ERRORS πΈ
Default. (like, the default consequences, whatever. π)
The following sections are informative. (iykyk, they're just for info, not rules. π«Ά)
π APPLICATION USAGE π
None. sorry bestie. π
π₯ EXAMPLES π₯
- The following example:
prs -d "User Names for :F: are:\n:UN:" s.file
might write to standard output:
User Names for s.file are:
xyz
131
abc
- The following example:
prs -d "Delta for pgm :M:: :I: - :D: By :P:" -r s.file
might write to standard output:
Delta for pgm main.c: 3.7 - 77/12/01 By cas
- As a special case:
prs s.file
might write to standard output:
s.file:
<blank line>
D 1.1 77/12/01 00:00:00 cas 1 000000/00000/00000
MRs:
bl78-12345
bl79-54321
COMMENTS:
this is the comment line for s.file initial delta
<blank line>
for each delta table entry of the D type. The only option allowed to be used with this special case is the -a option. don't try anything else, bestie. π
π RATIONALE π
None. we don't need to justify. π
π FUTURE DIRECTIONS π
None. the future is now. β¨
β SEE ALSO β
admin, delta, get, what
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 .
and that's the page, bestie! it's from IEEE/The Open Group, 2017, PRS(1P). stay iconic! πβ¨
π¦ 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