Add 'get-environment-variable', in a fashion:
authorlum <lum@openbsd.org>
Fri, 26 Mar 2021 12:31:37 +0000 (12:31 +0000)
committerlum <lum@openbsd.org>
Fri, 26 Mar 2021 12:31:37 +0000 (12:31 +0000)
commit25c9b060cf49ed154b2033d00573095984400b7b
tree2e39776c6fcdd526f6d6f666f6a6f8e761734698
parent01c40890b297bb64e37dd3f9f04abe0a780090ad
Add 'get-environment-variable', in a fashion:

(define curdir(get-environment-variable CURDIR))
(insert curdir)

Should now print the value of the environment variable CURDIR's value,
or error if it is not set.
usr.bin/mg/interpreter.c