[m-users.] How to get the environment

Volker Wysk post at volker-wysk.de
Fri Mar 22 22:50:18 AEDT 2019


Hi

There is io.get_environment_var/4, but this gets just one environment 
variable. For the posix.exec/5 predicate, the entire environment is needed, as 
a map(string,string). There are no foreign predicates for the other variants 
of exec (such as execv), which don't require the environment.

I've searched in the io and posix libraries, but couldn't find any way to 
query the entire environment. Could it be that there isn't any...?

Bye
Volker




More information about the users mailing list