Skip to main content

contains_dynamic_shell_syntax

Function contains_dynamic_shell_syntax 

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

Returns whether a shell command contains syntax whose meaning depends on shell expansion rather than the literal argument text.

Safety-sensitive classification must only operate on static command shapes. Parameter expansion, command substitution, brace expansion, globbing, and backslash escapes can otherwise turn a harmless-looking token into a different executable argument at runtime.