Handbook
Glossary
with-os-env ( value key quot -- )
Vocabulary
environment
Inputs
value
a
string
key
a
string
quot
quotation
Outputs
None
Word description
Calls a quotation with the
key
environment variable set to
value
, resetting the environment variable afterwards to its previous value.
See also
os-env
,
os-envs
,
set-os-env
,
unset-os-env
,
set-os-envs
,
set-os-envs-pointer
,
change-os-env
Definition
USING:
continuations
kernel
;
IN:
environment
:
with-os-env
( value key quot -- )
over
[
[
[
set-os-env
]
2curry
]
[
compose
]
bi*
]
dip
[
os-env
]
keep
[
set-os-env
]
2curry
finally
;
inline