Skip to main content

execode_wordcode

Function execode_wordcode 

Source
pub fn execode_wordcode(
    p: Eprog,
    dont_change_job: i32,
    exiting: i32,
    context: &str,
)
Expand description

Port of void execode(Eprog p, int dont_change_job, int exiting, char *context) from Src/exec.c:1245-1282. Set up an estate around the given Eprog and run execlist. Maintains the zsh_eval_context stack so $ZSH_EVAL_CONTEXT reflects the call chain.

NOTE: this is the WORDCODE form (drives the ported execlist interpreter). zshrs’s live execution pipeline is fusevm (compile_zsh → VM), so the top-level REPL loop() and most call sites run through execode (the ZshProgram/fusevm form below) instead. This wordcode entry is retained for the internal function-body callers (doshfunc / autoload) that already hold an Eprog.