After that (when the compiler runs) these settings are lost.
This is why I asked what the equivalent for
EXPORT is. If you type
FOO="something"
EXPORT BAR="something else"in a "real" shell, then
$FOO will be lost when you close that shell, but
$BAR will not. I don't know the syntax to do that under Windows, but there must be something similar.
So it seems to me that this functionality is broken... Sad Could someone other than me verify, please?
No, it is not broken. It is not implemented. The information that all user variables are exported is not correct. That used to be the case a long, long time ago.
In the old days, the compiler would first define all user variables as environment variables, and forget about them. Then, at a later time, it would call the macros manager and request that all environment variables be replaced. This was one reason why it was so slow and why it was so hard to track down bugs.
But hey, we could re-implement that functionality (only for a defined set of variables), it really seems to be useful...