home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / Tools / nShell™ 1.0.3 / nShell / bin / man / man.rsrc / TEXT_16100_man exit general.txt < prev    next >
Encoding:
Text File  |  1994-09-24  |  480 b   |  25 lines

  1.  
  2. NAME
  3.  
  4. exit - exit script
  5.  
  6. SYNOPSIS
  7.  
  8. exit [return code]
  9.  
  10. DESCRIPTION
  11.  
  12. The "exit" command causes an immediate return from a script.  An integer return code may be set and later accessed using the $? pseudo variable.  When no parameter is given, a code of 0 is returned.
  13.  
  14. When the "exit" command is used on the command line, it cancels all processing and sets the specified return code.
  15.  
  16. EXAMPLES
  17.  
  18. #
  19. # test usage
  20. #
  21. if .ne. $# 2 then
  22.     echo "Usage: cmd filename"
  23.     exit -1
  24. endif
  25.