's article is well-written and is easy to understand. However that article doesn't seem (at least to a low-flying monk) to address the OP's question, which is about the passing of environmental variables by
and by backticks. I therefore support
's request for code from the OP, as I would like to learn about this.