Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

8.0;exit, revision 8.0, 84/03/21
EXIT -- Exit from a WHILE loop.
usage:  EXIT


FORMAT

  EXIT


  The  EXIT command is used exclusively to exit from a Shell script loop invoked
  with the WHILE command.

  Do not confuse this command with the DM command EX, which  exits  the  Display
  Manger  and  returns  control  to  the  Boot  Shell.    Type  HELP EX for more
  information.

  The EXIT command requires no arguments or options.


EXAMPLES

  Consider the following section from a Shell script:

  1. WHILE ((true))
     DO    READC a
           IF ((^a = "y")) THEN EXIT ENDIF
           ARGS "still looking ..."
     ENDDO
     ARGS finished.

  When the READC (READ_CHARACTER) command reads a character  into  variable  "a"
  that  matches  the  character  "y",  the  EXIT command executes and causes the
  script to jump to the command following the ENDDO.

  For more information on variables, refer to Chapter 3  of  the  DOMAIN  System
  Command Reference Manual.

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