The behaviour is as expected and fully explained in the manual. Why use environment variables at all? If you are setting them in KiX then you could simply use KiX variables.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.