pub fn expand_dollar_variables(
input: &str,
reject_undefined: bool,
) -> Result<String, PathError>Expand description
Expand $VAR and ${VAR} style environment variables.
Rules:
${VAR}requires a closing}$VARmatches[A-Za-z_][A-Za-z0-9_]*$123is not a variable (digit-leading names are not expanded)$(is never expanded (command substitution is unsupported)- Backticks are never expanded
Undefined variables: error when reject_undefined is true; otherwise leave the token.