choco icon indicating copy to clipboard operation
choco copied to clipboard

Copy environment variables

Open noseratio opened this issue 6 years ago • 1 comments

The admin console launched by wsudo doesn't inherit any non-default environment variables which might have been set in the calling process. I plan to clone the whole set of env vars and make it available to the admin console and its child processes. It might be a bit complicated because the command line size for cmd.exe is limited to 8K. I need to use some form of IPC other than the base64-encoded json passed as command line arg I use. Something like a memory mapped file, perhaps.

noseratio avatar Feb 28 '19 22:02 noseratio

This would be a great addition, as some non default env variables might be essential to run a specific command.

Example: I use "AWS_PROFILE" to interface with different AWS envs through the CLI. I need to have that set to be able to run aws CLI commands. But if I have to also use "wsudo" (for example to copy the contents of a bucket locally), I also need the profile to transfer over the admin shell.

wtfzambo avatar Apr 15 '20 17:04 wtfzambo