Go to the first, previous, next, last section, table of contents.


exec

Control-struct: exec { fn -> @ }
file: job.t
package: muf
status: alpha

The exec operator corresponds to the unix exec*() functions. It takes one argument which must be a compiledFunction or a symbol with a compiledFunction functional value. The current loop and data stack contents are cleared, and the function is then called. Thus, the function should take no arguments, and since when it returns the job will terminate, it cannot really return any arguments either.

In order to do an exec, @$s.actingUser must equal @$s.actualUser, or else must be root running with the OMNIPOTENT bit set.

The function will normally be some sort of interactive readEvalPrint loop with an abort restart so the user can return to the loop.


Go to the first, previous, next, last section, table of contents.