change-os-env ( key quot -- )
Environment variables

Prev:set-os-envs ( assoc -- )
Next:set-os-envs-pointer ( malloc -- )


Vocabulary
environment

Inputs
keya string
quota quotation with stack effect ( old -- new )


Outputs
None

Word description
Applies a quotation to change the value stored in an environment variable.

Examples
This is an operating system-specific feature. On Unix, you can do:
USING: environment io ; "USER" os-env print "USER" [ "-doe" append ] change-os-env "USER" os-env print
jane jane-doe


Side effects
Modifies key

See also
os-env, os-envs, set-os-env, unset-os-env, set-os-envs, set-os-envs-pointer, with-os-env

Definition