Skip to main content

is_var_assignment

Function is_var_assignment 

Source
pub fn is_var_assignment(token: &str) -> bool
Expand description

True when a bare token is a variable assignment: NAME=value or the bash append form NAME+=value. The name before = / += must be a valid shell identifier (ASCII alpha/underscore, then ASCII alphanum or underscore).