Gforth uses these environment variables:
GFORTHHIST– (Unix systems only) specifies the directory in which to open/create the history file, .gforth-history. Default:
GFORTHPATH– specifies the path used when searching for the gforth image file and for Forth source-code files.
LC_CTYPE– If this variable contains “UTF-8” on Gforth startup, Gforth uses the UTF-8 encoding for strings internally and expects its input and produces its output in UTF-8 encoding, otherwise the encoding is 8bit (see see Xchars and Unicode). If this environment variable is unset, Gforth looks in
LC_ALL, and if that is unset, in
GFORTHSYSTEMPREFIX– specifies what to prepend to the argument of
systembefore passing it to C's
"./$COMSPEC /c "on Windows,
""on other OSs. The prefix and the command are directly concatenated, so if a space between them is necessary, append it to the prefix.
GFORTH– used by gforthmi, See gforthmi.
GFORTHD– used by gforthmi, See gforthmi.
TEMP- (non-Unix systems only) used as a potential location for the history file.
All the Gforth environment variables default to sensible values if they are not set.