Executes parsed Bash AST nodes within session context.
This module dispatches AST node execution to the appropriate module's
execute/3 function, handling session state like environment variables
and working directory.
Summary
Functions
Yield to a pending cooperative cancel.
Functions
Yield to a pending cooperative cancel.
Loop iterators call this at the start of each iteration with the current
threaded session state. If the session has signalled this Task with
{:cancel, signal} (via Bash.Session.signal/2 with :sigint/:sigterm),
this throws {:cancelled, signal, state} so the Task closure can run any
matching trap (using the current traps map) and return a cancellation
result. Returns :ok when no cancel is pending.