I am on Ubuntu windows 10 linux subsystem, I can set env vars fine with:
$ export exVar2=stringName
and view them with
$ printenv ex