emscripten-core / emscripten-core/emscripten

Direct environment access on node.js

Open
#3,915 11 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.