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 Section 3.1.2), and for "~" in the argument of the :cd command (see Section 2.4).
Additional options for Hugs, processed before any given on the command line (see Section 3.1). 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 Section 3.1.2).
(Windows only) If this variable is set, options are not read from the user portion of the Registry (see Section 3.1). You might use this to recover if your registry settings get messed up somehow.
The locale used for external representation of Haskell Char values (see Section 3.3).
The shell that is invoked by the :! command (see Section 2.4).