-
Notifications
You must be signed in to change notification settings - Fork 29.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The PATH key in process.env is not upcased #22578
Comments
If I am not mistaken, this cannot hurt:
|
@zzhengjian are you able to access the path via process.env.PATH? |
@zzhengjian what does windows native tools show (e.g. |
Environment variables are case-insensitive on Windows. I'll close this issue, if you can provide an example where this difference in case matters, feel free to reopen this issue. |
Hi, |
@AyushG3112 @refack |
IIUC, the Can you try this and let me know if it works for you: process.env = new Proxy(process.env, {
get(env, prop){
return env[prop.toUpperCase()];
},
set(env, prop, val){
env[prop.toUpperCase()] = String(val);
return 1;
},
});
console.log(process.env.Path); |
Anyone know how to resolve it?
The text was updated successfully, but these errors were encountered: