For each variable that is defined and non-empty create a keyvalue string
that is the concatenation of the variable name, "=", and the
variable value. Concatenate more than one keyvalue string with intervening
values of arg to create the substitution value.