Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ unget(1) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

delta

get

sact

sccsfile

unget

PURPOSE

     Cancels a previous get command.

SYNOPSIS
     unget [-rSID] [-s] [-n] files


DESCRIPTION

     The unget command allows you  to restore a g-file created
     with a get -e before the new delta is created, and there-
     fore discarding the changes  (see "get" and "delta").  If
     you specify a - (hyphen) in place of file, standard input
     is read, and  each line of standard  input is interpreted
     as the  name of  an SCCS file.   unget continues  to take
     input until it reaches an end of file character, which is
     a Ctrl-D if input is from the keyboard.

     If you specify  a directory in place of  file, unget per-
     forms  the requested  actions  on all  SCCS files  (those
     files with the s. prefix).

FLAGS

     Each flag or group of flags applies independently to each
     named file.

     -n     Prevents  the automatic  deletion  of the  g-file.
            This flag allows you  to retain the edited version
            of the file without making a delta.
     -rSID  Specifies  the  new  delta that  would  have  been
            created by the next use of the delta command.  You
            must use this flag if you have two or more pending
            deltas to the file under the same login name.  You
            can look  at the  p-file to see  if you  have more
            than one  delta pending to a  particular SID under
            the same  login name.  The SID  specification must
            unambiguously specify only one  SID to discard, or
            unget displays an error message and stops running.
     -s     Suppresses  writing the  deleted  SID to  standard
            output.

EXAMPLE

     To  discard the  changes you  have made  to an  SCCS file
     after doing a get -e:

       unget  s.prog.c

RELATED INFORMATION

     The following commands:   "delta,"  "get," and "sact."

     The sccsfile file in  AIX Operating System Technical Ref-
     erence.

     The discussion  of SCCS in AIX  Operating System Program-
     ming Tools and Interfaces.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026