quisp: general interpreter settings

quick server pages
| Manual page for general(interpreter)

## General interpreter settings

The `#mode` directive can be used to make general settings that affect how the QUISP template interpreter behaves.``

## #mode

Set various operational modes.``

Usage: `#mode` attribute value

attribute may be one of the following:

error_mode

  Default is `stderr`, so that error messages are written to standard error.`` This may be set to `stdout` for error messages to be written to standard output.``

dot_in_varnames

  Specifies whether variable names may contain periods (.).`` Default is `yes`, which is convenient with SQL applications since join results are named using a period.``
  Example: `#mode dot_in_varnames no`

evalvars

  Default is `yes`. Use `no` to turn off evaluation of variables.``
  Example: `#mode evalvars no`

nullrep

  This determines how NULL database fields will be represented.`` Allowable values are `blank`, `null`, `nbsp`, and `noconvert`.`` The default is `blank` which causes NULLs to be converted to zero length strings.`` Use `nbsp` to convert NULLs to the HTML non-breaking space character `&nbsp;` This should be invoked before result rows are fetched.`` Conversion occurs after the row is retrieved from the database.``

  Example: `#mode nullrep nbsp`

shellmetachars

  This specifies the set of characters that are to be screened out of variables that are present when building a shell command (see the opening paragraphs of the #shell man page ). There should be no embedded whitespace.`` This can also be set in the project config file
  Default set of shell metacharacters is: `"'`$\;`
  Example: `#mode shellmetachars "'``

## Database mode settings

See also the shsql SQLMODE command, which can be used to make certain database-specific settings.``
quick server pages
Copyright Steve Grubb

Markup created by unroff 1.0, `` `` March 16, 2004.