return |
---|
|
return [ exit-value ] |
---|
|
To return an exit value from a shell function to the calling script. |
---|
|
None. |
---|
|
The default exit status used if none is supplied is the exit status of the last command executed. If that is what you want, it is best to do this explicitly in the shell function: |
---|
return $? |
---|
|
Some shells allow the use of return within a script but outside of a function body to mean the same as exit. This usage isn't recommended, for portability reasons. |
---|