Skip to main content

shell_string_might_be_dangerous

Function shell_string_might_be_dangerous 

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

Evaluate a shell command string by parsing it into subcommands and checking each with the centralized dangerous-command detector.

Falls back to whitespace tokenization when structured parsing fails.