Skip to main content

extract_variable_writes

Function extract_variable_writes 

Source
pub fn extract_variable_writes(cmd_str: &str) -> HashSet<String>
Expand description

Extract variable writes from a shell command string

Looks for assignment patterns:

  • VAR=value
  • export VAR=value