Expand shell variables of form $var and ${var}. Unknown variables are left unchanged.
os.path/expandvars
expandvars