Branch: Tag:

2019-04-25

2019-04-25 14:29:20 by Henrik Grubbström (Grubba) <grubba@grubba.org>

MasterObject: Support getting the live environment mapping from getenv().

This is needed by the test suite when it overloads the master,
as it tests use of environment variables with Getopt, and the
Getopt module is loaded early by the main master (and thus uses
a getenv() from the main master and the original environment).

1408:   {    mapping(string:string) res;    -  if (force_update) { +  if (force_update > 0) {    res = Builtin._getenv();   #ifdef __NT__    set_lc_env (res);
1426:    if (!environment) environment = Builtin._getenv();    res = environment + ([]);   #endif +  if (force_update < 0) return environment;    }       return res;