If the System* variables are somehow removed from the environment and the script runs a (transient) subshell, the licence system reports that the license has expired. This behavior is not documented. Specifically, these variables and their importance are not mentioned in the "System Variables" table in the helpfile. It is very time-consuming to trace the errors back to the missing envars.
The same condition also causes other (internal?) commands to misbehave in incomprehensible ways. E.g, the RD /S and DEL /S commands are also effected.
I find this surprising because the information needed is available in the internal _sysdir variable.
If such an important dependency must exist I would expect to be warned, both in the documentation as when launching a subshell.
The same condition also causes other (internal?) commands to misbehave in incomprehensible ways. E.g, the RD /S and DEL /S commands are also effected.
I find this surprising because the information needed is available in the internal _sysdir variable.
If such an important dependency must exist I would expect to be warned, both in the documentation as when launching a subshell.