parsing TEMPVAR with parameter expansion