themecompat

Themecompat is not avaliable for csh.

Themecompat were created to enable prompts to look the same on bash, zsh, ksh (and the currently unsupported 'ash') without writing multiple versions, an idea was also to support future shells with other expandable characters than bash and zsh.

The module "themecompat" provides the following variables

The following variables must not be redeclared (as static nor dynamic)

In ksh88-compatible scripting, a variable can have two states: static and dynamic. The static variable is only evaluted when initialized. The dynamic variable is re-evaluted each time read.

Static variables is encapsulated in double quotation marks '' while dynamic variables are encapsulated in single quoutation marks '.

When declaring the prompt variable one must be careful not to redeclare these values, to achieve this, one can ``undeclare'' the variable temporary and start the declaration after the themecompat variable has been inserted! This example shows a correct ``undeclaration'' in the $PROMPT variable:

- begin -

PROMPT=''foo''$w''baz ''

- end -

Thomas Eriksson 2004-06-23