next up previous contents index
Next: The sced Command Up: Input and Output Commands Previous: The print Command   Contents   Index


The return Command

This will cause the currently executing script or codeblock to terminate immediately and return to the caller.

return [expression]
If an expression follows, it will be evaluated and the global return value will be set to the result. The global return value is an internal global variable that can be set and queried from any script or the comand prompt as the special variable name $?. The retval command is used to set the global return value without immediately returning.



Stephen R. Whiteley 2019-06-03