Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Passing empty environment variables to child processes convert to 'undefined' using ConEmu + Node #1209
ConEmu build: 170402 x64
When executing a process which spawns a child process, which in turn creates another child process, the empty environment variables are passed through as
Steps to reproduce
When ran from within ConEmu: the test failes
The test also prints the environment variables to screen. You can see a lot of "undefined" values (the string literal, not an absent value).
If ran from cmd or git-bash using mintty directly: the test passes
√ should contain "npm_config_onload_script"
If you now look at the environment variables on screen, you don't see the "undefined" values. Just empty strings.
The same issue when running cmd.exe in ConEmu.
But not using command prompt:
The only way for me to reproduce this issue is to run it in ConEmu with any shell (cmd or git bash).
I read trough the Third-party application problems page before submitting this issue, but seeing i can only reproduce it in ConEmu, i decided to report it here.
@Maximus5 IMHO the edge case here is that in
attached is a minimally reproducing script and a Procmon PML trace