Skip to main content

has_dangerous_structure

Function has_dangerous_structure 

Source
pub fn has_dangerous_structure(command: &str) -> bool
Expand description

True when the command’s structure (argv, pipelines, evaluated substitutions) is dangerous regardless of the literal text: recursive root deletes, remote payloads fed to a shell, or eval of a fetched script.