pub fn execpline(state: &mut estate, slcode: u32, how: i32, last1: i32) -> i32Expand description
Port of execpline(Estate state, wordcode slcode, int how, int last1)
from Src/exec.c:1668-1942. Walks the WC_PIPE chain, sets up
pipes/fork between stages, handles Z_TIMED / Z_ASYNC.
The full body needs: pipe(), fork(), execcmd_exec per-stage, job- table installation, wait-status reaping. Until those primitives land in faithfully-ported form, the structural shape is preserved here: walk the WC_PIPE chain, exec each cmd inline (the inlined match is the same dispatch C’s exec.c:2901-3700 uses), propagate LASTVAL through stages. Single-cmd pipelines work end-to-end; multi-stage pipelines fall back to sequential execution (status of last stage) until pipe + fork land.