Skip to main content

shell_call_effects

Function shell_call_effects 

Source
pub fn shell_call_effects(command: &str, cwd: Option<&str>) -> CallEffects
Expand description

The typed effects of a shell command run in cwd (an absolute directory, if known): egress hosts from the URL operands of network programs, deletes, and writes from output redirects, tee, cp/mv destinations, touch and mkdir. NEVER complete: a shell string cannot be proven fully described (every review round found another construct), and the keys bind the owner’s declines either way. It is understood when every segment is a program this scan models, with literal operands it resolved (no substitution, expansion, cd or unknown program): the owner is then asked again after a decline only for a call that deletes or reaches outside, not for a plain copy into the work area followed by ls and date (live 2026-11-13).