Skip to main content

execode

Function execode 

Source
pub fn execode(
    program: &ZshProgram,
    _dont_change_job: i32,
    _exiting: i32,
    _context: &str,
) -> i32
Expand description

zshrs execode — run an already-parsed ZshProgram (Src/exec.c:220 execode(prog, ...), called from loop()). This is the exec.rs exception to the line-by-line port: rather than walk wordcode via execlist, it drives zshrs’s live engine — compile the program with compile_zsh and run it on the session executor’s fusevm VM. The faithful loop() in init.rs calls this exactly as C calls execode. Returns $? (0 when no session executor is installed).