Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

10.0;return, revision 1.0, 88/01/21
return -- Return from current shell level.
usage: return  [-ok | -t  | -f | -w |  -e |  -o |  -i |  -p | -m]



DESCRIPTION
     The return command causes the shell to return from its current level with
     the specified status severity.  See the abtsev command description for
     details about status severity levels.

OPTIONS
     Specify one of the following options to select the return-severity level.

     -ok            Set level to ok.

     -t[rue] (default)
                    Set level to true.

     -f[alse]       Set level to false.

     -w[arning]     Set level to warning.

     -e[rror]       Set level to error.

     -o[utinv]      Set level to output invalid.

     -i[ntfatal]    Set level to internal fatal error.

     -p[gmflt]      Set level to program fatal error.

     -m[ax_severity]
                    Set level to maximum severity error.

EXAMPLES
     The following lines are a portion of a shell script:

     #
     # Test to see if the second parameter passed to the script is valid.
     # If it is not, abort the script.
     #
     if eqs ^1 '-test' then
        if eqs ^2 '-b' then
           cpf ^3 temp.mss
        else
           args "(?) >>> ^2 <<< is not a valid parameter."
           return -P
        endif
     else
        cpf ^1 temp.mss
        .
     endif



SEE ALSO
     More information is available.  Type

     help  abtsev   For details about abort-severity levels

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