Skip to main content

Crate frost_exec

Crate frost_exec 

Source
Expand description

Command execution engine for frost.

Takes an AST produced by frost-parser and executes it, managing processes, pipelines, redirections, and the shell environment.

Platform-specific system calls are isolated in the sys module so the rest of the engine remains portable across Unix variants.

Re-exports§

pub use env::ShellEnv;
pub use execute::Executor;
pub use job::Job;
pub use job::JobTable;

Modules§

env
Shell environment — variables, functions, aliases, and process state.
execute
The main execution engine.
job
Job control — tracking background and suspended processes.
redirect
Redirection handling — applies I/O redirections via dup2(2).
sys
Platform abstraction layer.

Functions§

execute
Convenience entry point: create a fresh environment, execute the program, and return the exit status.