16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

exit<br />

exit — Return to the shell’s parent process or to TSO/E<br />

Format<br />

Description<br />

Usage Note<br />

Localization<br />

Exit Values<br />

exit [expression]<br />

tcsh shell: exit [expr]<br />

Related Information<br />

return, sh, tcsh<br />

exit ends the shell. If there is an expression, the value of the expression is the exit<br />

status of the shell.<br />

The value of expression should be between 0 and 255. For values outside this<br />

range, the exit status will be the least significant 8 bits of the value of the<br />

expression. The EXIT trap is raised by the exit command, unless exit is being<br />

called from inside an EXIT trap.<br />

If you have a shell background job running, you cannot exit from the shell until it<br />

completes. However, you can switch to subcommand mode and exit.<br />

exit in the tcsh shell<br />

The shell exits either with the value of the specified expression or, without<br />

expression, with the value of the status variable. The value of expression should be<br />

between 0 and 255. See “tcsh — Invoke a C shell” on page 626.<br />

exit is a special built-in shell command.<br />

exit uses the following localization environment variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_MESSAGES<br />

v NLSPATH<br />

See Appendix F for more information.<br />

exit returns the value of the arithmetic expression specified by the expression<br />

argument to the parent process as the exit status of the shell. If you omit<br />

expression, exit returns the exit status of the last command run.<br />

The exit() ANSI C function, the _exit callable service, and the _exit() P<strong>OS</strong>IX C<br />

function are unrelated to the exit shell command.<br />

262 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!