August 1999
Intermediate to advanced
1000 pages
83h 9m
English
exit [n] return [n]
exit [(expr)] goto label
* exit [n] * return [n]
exit exits the calling shell or shell script with the exit status specified by n . If you omit n , the exit status is that of the last command executed (an end-of-file exits the shell).
return exits a function with the return value specified by n . If you omit n , the return status is that of the last command executed.
exit exits the calling shell or shell script, either with the value of the status variable or with the value specified by the expression expr .
The goto built-in uses a specified label as a ...
Read now
Unlock full access