Site Tools


return

Synopsis:

return
return <arguments>

Description:

Return terminates processing of the current

You may optionally supply a return value which will be assigned to the function_return local variable, which is useful from:

  • The body of the {…} math operator
  • on ?type handlers
  • Any alias function call.

Using the return command outside of one of the above contexts yields an error and has no effect.

Examples:

 alias square (arg) return ${arg * arg}
 eval echo $square(5)

will output

 25

History

The return command first appeared in EPIC4pre1.031.

return.txt · Last modified: 2006/08/29 20:18 by 127.0.0.1