Changing Solaris environment variables so os:getenv/1 gets the ne w
Wed Mar 29 11:41:28 CEST 2000
Sean Hinde wrote:
> Thanks Peter:
> > Try os:putenv(Var, Value).
> > /Peter
> An intriuging answer. There is no documentation on this, it is not in module
> os source, and m(os). returns:
> I guess it is a BIF. I must look through the source sometime and see what
> other goodies are in there.
It is "technically" a BIF. Unfortunately such creatures does not show up when
doing a Module:module_info() (or an m(Module)). They *should* be documented
though. This may be a deliberate "documentation bug", as the result of
os:putenv/2 does *not* always show up when using os:cmd/1 (due to the fact that
the shell is "kept" between commands). Both the os:cmd problem and the missing
documentation should, and will, be fixed.
Until recently, there were a lot of undocumented BIF's in the system. We now
try to have all BIF's documented and instead warn in the documentation if the
BIF is likely to change in the future or is strange in some other way. We seem
to have overlooked this one.
More information about the erlang-questions