← All docs
exec() — internals
Compiler internals for exec(): lowering path, type checks, and runtime helpers.
exec() — internals
Where it lives
- Signature:
src/builtins/system/exec.rs - Lowering:
src/codegen/lower_inst/builtins/system.rs:690 (lower_exec) - Function symbol:
lower_exec()
Lowering notes
- Lowers
exec(command)by capturing shell stdout through the shared runtime helper.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function exec(string $command): string
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/network_env/exec.rs(eval_builtin!) - Dispatch hooks:
direct,values