You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For setenv you write that this function set variable only to childe process.
This is not true.
To test
localwinapi=require"winapi"os.execute("git help") -- this call faillocalpath=os.getenv("PATH") ..';c:\\git\\bin'winapi.setenv("path", path)
os.execute("git help") -- but this pass
getenv create snpshot Environments while load dll and then return same variable.
In my env library i write tests to check all possible variants and os.getenv never get new value,
but GetEnvironmentVariable/getnev(from my dll)/getenv_s/environ return new value. May be on *nix this is not true.
The text was updated successfully, but these errors were encountered:
OK, that makes sense - os.getenv() is a portable version, but does not fully behave as it should (not an uncommon problem with Windows). So maybe winapi.getenv? Does this matter enough? I agree that the description should be updated.
I implement 5 functions for env get/set/expand/environ/update.
Update broadcast WM_SETTINGCHANGE like MSDN says, but i can not understand how it work.
You can use my implementation of env functions.
For setenv you write that this function set variable only to childe process.
This is not true.
To test
getenv create snpshot Environments while load dll and then return same variable.
In my env library i write tests to check all possible variants and os.getenv never get new value,
but GetEnvironmentVariable/getnev(from my dll)/getenv_s/environ return new value. May be on *nix this is not true.
The text was updated successfully, but these errors were encountered: