passthru()
function passthru(string $command): void
Executes an external program and passes its output directly.
Parameters:
$command(string)
Returns: void
Availability
- Compiled (AOT): supported on the three executable/release hosts (macOS ARM64, Linux ARM64, and Linux x86_64); calls are refused at compile time for iOS library targets.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/network_env/passthru.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how passthru is implemented in the compiler, see the internals page.