Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ () — Coherent 3.1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


exit                         Command                         exit




Exit from a noninteractive shell

exit [status]

exit terminates a  noninteractive shell sh If the optional status
is  specified,  the shell  returns  it;  otherwise, the  previous
status is  unchanged.  From an  interactive shell, exit  sets the
status if specified, but does not terminate the shell.  The shell
executes exit directly.

***** See Also *****

commands, sh

***** Notes *****

If a  program leaves  main() by  an error condition,  contents of
register AX becomes  the exit code.  Usually, these register con-
tents are  random.  If you want to test  a program's return code,
you must to exit or return from main().




































COHERENT Lexicon                                           Page 1


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