3.2. Environment variables used by Hugs

Hugs also consults a number of environment variables on systems that support them. The method for setting these varies with the system.

EMACS

(Windows only) If this variable is set, Hugs is assumed to be running in an Emacs subshell (with different line termination conventions on input).

HOME

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).

HUGSFLAGS

Additional options for Hugs, processed before any given on the command line (see Section 3.1). 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
Double quoted options may also contain the escape sequences "\ ", "\"" and "\\". Other bachslashes are interpreted literally.

HUGSDIR

The Hugs library directory. This is substituted for {Hugs} in the argument of the -P option (see Section 3.1.2).

IGNORE_USER_REGISTRY

(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.

SHELL

The shell that is invoked by the :! command (see Section 2.4).