Handbook
Glossary
get-environment ( process -- env )
Vocabulary
io
.
launcher
.
private
Inputs
process
a
process
Outputs
env
an
assoc
Word description
Combines the current environment with the value of the
environment
slot of the
process
using the
environment-mode
slot.
Definition
USING:
accessors
assocs
combinators
environment
io.launcher
kernel
;
IN:
io.launcher.private
:
get-environment
( process -- env )
[
environment>>
]
[
environment-mode>>
]
bi
{
{
+prepend-environment+
[
os-envs
assoc-union
]
}
{
+append-environment+
[
os-envs
swap
assoc-union
]
}
{
+replace-environment+
[
]
}
}
case
;