Skip to content
Prev 12292 / 398502 Next

Sys.getenv

Christian Hoffmann <christian.hoffmann at lagonda.wsl.ch> writes:
?? (see below)
It's not quite clear to me exactly what you're doing, but the thing
that usually confuses people about environments is the following:

Environments exist on a per-process basis. A child process inherits a
*copy* of the parent environment. Making changes to an environment
does not affect the environment of any other running process.

E.g. the following is expected:
bar
$ echo $FOO

$ 
but this should work (parallel to setenv but Bourne shell syntax):


$ BAR=foo ; export BAR
$ R --quiet
BAR 
"foo"
??? (that'd make it Solaris 7, no?)