unget(1)							     unget(1)



NAME

  unget - Cancels a previous get command

SYNOPSIS

  unget [-n] [-s] [-rSID] file ...  | -

  The unget command allows you to restore a g-file created with a get -e
  before the new delta is created, and therefore discard the changes (see the
  get and delta commands).

FLAGS

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

  -n  Prevents the automatic deletion of the file obtained by get,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 particu-
      lar SID under the same login name.  The SID specification must unambi-
      guously specify only one SID to discard, or unget displays an error
      message and stops running.

  -s  Suppresses displaying the deleted SID.

DESCRIPTION

  If you specify a - (dash) in place of file, standard input is read, and
  each line of standard input is interpreted as the name of a Source Code
  Control System (SCCS) file.  An End-of-File character terminates input.

  The file name or names refer to the SCCS s-files, not the g-files.  If the
  s-files are not in the working directory, the names must include the path
  to the SCCS directory.  If you specify a directory in place of file, unget
  performs the requested actions on all SCCS files (those files with the s.
  prefix).

EXAMPLES

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

       unget  s.prog.c


  The previous example illustrates use of unget for an s-file in the working
  directory.  The following example illustrates use of the command for an s-
  file in a different directory:

       unget  /usr/projects/myproject/SCCS/s.prog.c



ENVIRONMENT VARIABLES

  The following environment variables affect the execution of unget:

  LANG
      Provide a default value for the internationalization variables that are
      unset or null. If LANG is unset or null, the corresponding value from
      the implementation-specific default locale is used. If any of the
      internationalization variables contains an invalid setting, the utility
      behaves as if none of the variables had been defined.

  LC_ALL
      If set to a non-empty string value, override the values of all the
      other internationalization variables.

  LC_TYPE
      Determine the locale for the interpretation of sequences of bytes of
      text data as characters (for example, single, as opposed to multi-byte,
      characters in arguments and input files).

  |*LLC_MESSAGES
      Determine the locale that should be used to affect the format and con-
      tents of diagnostic messages written to standard error.

  NLSPATH
      Determine the location of message cataloues for the processing of
      LC_MESSAGES.

EXIT STATUS

  The following exit values are returned.

  0  Successful completion.

  >0 An error occurred.

RELATED INFORMATION

  Commands:  admin(1), cdc(1), comb(1), delta(1), get(1), prs(1), rmdel(1),
  sact(1), sccsdiff(1), sccshelp(1), val(1), what(1).

  Files:  sccsfile(4).