sccs-unget(1)
π
sccs-unget(1) β like, the unget girlie of the SCCS fam
okay so bestie, welcome to sccs-unget (also known as plain *`unget``) β it's a *User Command, it's iconic, and it's literally here to undo your mistakes. we stan a supportive queen. π«Ά
β¨ NAME β¨
sccs-unget, unget β undoes a previous get of an SCCS file. it's the "nvm bestie, take it back" of version control. π
πΈ SYNOPSIS πΈ
/usr/ccs/bin/unget [-ns] [-q[nsedelim]] [-rsid]
[-Nbulk-spec] s.filename...
π DESCRIPTION π
so the unget utility undoes the effect of a get -e command that was executed before the creation of the pending delta. it's giving "erase that, it never happened." β¨
if a directory name is used in place of the s.filename argument, the unget command applies to all s.files in that directory. (mass un-getting, we love efficiency π)
unreadable s.files produce an error, but processing keeps going with the next file (if any) β no quitter energy here, fr fr.
and using - as the s.filename argument means the names of files are to be read from standard input, one s.file per line. cute. π
π¦ OPTIONS π¦
the following options are supported:
-nβ retains the retrieved version, which is otherwise removed. so like, keep the goods. π-sβ suppresses display of the SCCS delta ID (SID). quiet luxury. π€«-rsidβ when multiple versions are checked out, this one specifies which pending delta to abort. you'll get a diagnostic if the specified SID is ambiguous, or if it's necessary but you omitted it from the command line. (so don't forget it, bestie, or it WILL call you out π)-q[nsedelim]β enables NSE mode. if NSE mode is enabled, several NSE related extensions may be used. in this release, the value ofnsedelimis ignored.
π¨ this option is an undocumented SUN extension that does not exist in historic sccs implementations. so it's giving "I'm not like other flags."
-Nbulk-specβ processes a bulk of SCCS history files. this option lets you do an efficient mass processing of SCCS history files. (group chat energy, but make it files. π₯)
the bulk-spec parameter is composed from an optional list of flag parameters followed by an optional path specifier.
the following flag types are supported:
++β ifbulk-specis preceded by a++,unget(1)expects to process filenames that are prepended by a plus sign, the related SID and another plus sign following the form:
+sid+filename
this permits each file to be retrieved with an individual SID. bespoke SIDs for everyone, we love to see it. π
spaceβ this is a placeholder dummy flag that allows one to use a prepared string for the-Noption and to replace the space character by one of the supported flags on demand. it's a stand-in, an understudy, a main character in waiting. π
the following path specifier types are supported:
-Nβ the file name parameters to theungetcommand are nots.filenamefiles but the names of the g-files. thes.filenamenames are automatically derived from the g-file names by prependings.to the last path name component. both thes.filenameand the g-file are in the same directory.-Ns.β the file name parameters to theungetcommand ares.filenamefiles. the g-files names are automatically derived by removings.from the beginning of the last path name component of thes.filename. both thes.filenameand the g-file are in the same directory.-Ndirβ the file name parameters to theungetcommand are nots.filenamefiles but the names of the g-files. thes.filenamenames are put into directorydir; the names are automatically derived from the g-file names by prependingdir/s.to the last path name component.-Ndir/s.β the file name parameters to theungetcommand ares.filenamefiles in directorydir. the g-files names are automatically derived by removingdir/s.from the beginning of the last path name component of thes.filename.
a typical value for dir is SCCS. (iykyk π)
in order to overcome the limited number of exec(2) arguments, it's recommended to use - as the file name parameter for unget(1) and to send a list of path names to stdin. strategy!! β
π¨ this option is a SCHILY extension that does not exist in historic sccs implementations.
-Xextended-optionsβ specify extended options. the argumentextended-optionsmay be a comma separated list of extended option names.
the following extended options are supported, they may be abbreviated as long as the abbreviation is still unique. options with parameter may not be abbreviated. (rules are rules π )
0β when reading filenames from stdin, triggered by a file name argument-, the filename separator is a null byte instead of a newline. this allows one to use long lists with arbitrary filenames. π§helpβ prints a short online help for available options.
π¨ the-Xoption is a SCHILY extension that does not exist in historicsccsimplementations.
-V,-version,--versionβ prints theungetversion number string and exists. that's it, that's the whole job. π
π¨ this option is a SCHILY extension that does not exist in historic sccs implementations.
π ENVIRONMENT VARIABLES π
see environ(7) for descriptions of the following environment variables that affect the execution of unget(1): LANG, LC_ALL, LC_CTYPE, LC_MESSAGES, and NLSPATH.
SCCS_NO_HELPβ if set,unget(1)will not automatically callhelp(1)with the SCCS error code in order to print a more helpful error message. scripts that depend on the exact error messages of SCCS commands should set the environment variableSCCS_NO_HELPand setLC_ALL=C. yes, both. do not skip a step. π€
π EXIT STATUS π
the following exit values are returned:
0β successful completion. slay. β¨1β an error occurred. π
π FILES π
p.fileβ permissions (lock) file for checked-out versions. seesccs-get(1)for a description of the layout of thep.file.q.fileβ temporary copy of thep.file; renamed to thep.fileafter completion.z.fileβ temporary lock file contains the binary process id in host byte order followed by the host name.dump.coreβ if the filedump.coreexists in the current directory and a fatal signal is received, a coredump is initiated viaabort(3). π that's the drama we didn't ask for.
π ATTRIBUTES π
see attributes(7) for descriptions of the following attributes:
- Attribute Type: Availability β Attribute Value:
SUNWsprot - Attribute Type: Interface Stability β Attribute Value:
Standard
π₯ SEE ALSO π₯
sccs(1), sccs-add(1), sccs-admin(1), sccs-branch(1), sccs-cdc(1), sccs-check(1), sccs-clean(1), sccs-comb(1), sccs-commit(1), sccs-create(1), sccs-cvt(1), sccs-deledit(1), sccs-delget(1), sccs-delta(1), sccs-diffs(1), sccs-edit(1), sccs-editor(1), sccs-enter(1), sccs-fix(1), sccs-get(1), sccs-help(1), sccs-histfile(1), sccs-info(1), sccs-init(1), sccs-istext(1), sccs-ldiffs(1), sccs-log(1), sccs-print(1), sccs-prs(1), sccs-prt(1), sccs-rcs2sccs(1), sccs-remove(1), sccs-rename(1), sccs-rmdel(1), sccs-root(1), sccs-sact(1), sccs-sccsdiff(1), sccs-status(1), sccs-tell(1), sccs-unedit(1), sccs-val(1), bdiff(1), diff(1), what(1), sccschangeset(5), sccsfile(5), attributes(7), environ(7), standards(7).
(that's the whole group chat, bestie. everyone showed up. π)
π©Ί DIAGNOSTICS π©Ί
use the SCCS help command for explanations (see sccs-help(1)).
π BUGS π
None currently known. (we love a flawless era π β¨)
mail bugs and suggestions to schilytools@mlists.in-berlin.de or open a ticket at https://codeberg.org/schilytools/schilytools/issues.
the mailing list archive may be found at:
https://mlists.in-berlin.de/mailman/listinfo/schilytools-mlists.in-berlin.de
π AUTHORS π
the SCCS suite was originally written by Marc J. Rochkind at Bell Labs in 1972. (1972!! ancient icon behavior ποΈ)
Release 4.0 of SCCS β which introduced new versions of the programs admin(1), get(1), prt(1), and delta(1) β was published on February 18, 1977; it introduced the new text based SCCS v4 history file format (previous SCCS releases used a binary history file format).
the SCCS suite was later maintained by various people at AT&T and Sun Microsystems. since 2006, the SCCS suite has been maintained by Joerg Schilling and the schilytools project authors. legacies. π«Ά
β¬οΈ SOURCE DOWNLOAD β¬οΈ
the source code for sccs is included in the schilytools project and may be retrieved from the schilytools project at Codeberg at
https://codeberg.org/schilytools/schilytools
the download directory is
https://codeberg.org/schilytools/schilytools/releases
okay that's the whole page bestie!! go forth and un-get responsibly π
and hiii one last thing β this lil beauty is tagged SunOS 5.11, dated 2022/10/06, and it goes by sccs-unget(1) if you need to cite it in the group chat. mwah! ππ¦
π¦ where this page comes from
- opensuse-leap 16.0: sccs 2022.10.16-160000.2.2 Β· CDDL-1.0
- opensuse-leap 16.0: sccs 2022.10.16-160000.2.2 Β· CDDL-1.0
- opensuse-leap 16.0: sccs 2022.10.16-160000.2.2 Β· CDDL-1.0
- opensuse-leap 16.0: sccs 2022.10.16-160000.2.2 Β· CDDL-1.0
- Copyright 2007-2020 J. Schilling
- Copyright (c) 1990, Sun Microsystems, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms