Hugs also consults a number of environment variables on systems that support them. The method for setting these varies with the system.
(Windows only) If this variable is set, Hugs is assumed to be running in an Emacs subshell (with different line termination conventions on input).
The user's home directory. This is substituted for {Home} in the argument of the -P option (see the Section called Module loading options), and for "~" in the argument of the :cd command (see the Section called Miscellaneous commands in Chapter 2).
Additional options for Hugs, processed before any given on the command line (see the Section called Hugs options). Within this string, options may be separated by whitespace. To include a literal space in an option, either precede it with a backslash or wrap the whole option in double quotes. The following example assumes a shell compatible with the Unix Bourne shell:
HUGSFLAGS='+k -E"vi +%d"' export HUGSFLAGS |
The Hugs library directory. This is substituted for {Hugs} in the argument of the -P option (see the Section called Module loading options).
(Windows only) If this variable is set, options are not read from the user portion of the Registry (see the Section called Hugs options). You might use this to recover if your registry settings get messed up somehow.
The shell that is invoked by the :! command (see the Section called Miscellaneous commands in Chapter 2).