This appears to be because ubuntu-core-launcher runs strtok over the return value from getenv. strtok modifies the memory it is pointed at, and getenv returns the address in memory of the actual environment. Changing it, changes the environment.
This appears to be because ubuntu- core-launcher runs strtok over the return value from getenv. strtok modifies the memory it is pointed at, and getenv returns the address in memory of the actual environment. Changing it, changes the environment.