emscripten-core / emscripten-core/emscripten
Direct environment access on node.js
Open
good first bug
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
getenv does not get Environment var (emscripten 1.35.0 )
Excpet PATH that return '/' wrong path
the other environment var are NULL
```
#include
#include
int main ()
{
char* ENVAR;
ENVAR = getenv ("PATH"); if (ENVAR!=NULL) printf ("\n <%s>",ENVAR);
ENVAR = getenv ("TEMP"); if (ENVAR!=NULL) printf ("\n <%s>",ENVAR);
ENVAR = getenv ("EMSCRIPTEN"); if (ENVAR!=NULL) printf ("\n <%s>",ENVAR);
ENVAR = getenv ("ComSpec"); if (ENVAR!=NULL) printf ("\n <%s>",ENVAR);
return 0;
}
```
Contributor guide
Assessment
This issue has not been assessed yet.