TCL - Special Characters


Special characters:

  • dollar sign ($),
  • backslash (\),
  • bracket ([ ),
  • number sign (#),
  • semicolon (;),
  • and exclamation point (!)

Note that Tcl uses curly braces ({) and (}) as preferred method for escaping special characters and writing valid, complex arguments.

Special Characters

Dollar sign ($)

The dollar sign identifies Tcl variables in Tcl.

Therefore, if you include $ in the name of a Warehouse Builder object, OMB*Plus uses the Tcl convention and displays the $ inside curly brackets such that name$ displays as name{$}. This prevents the name from being misinterpreted as a variable.

Backslash (\)

Tcl uses the backward slash to indicate the end of a line in a command that spans multiple lines. Therefore, in a multiple line OMB*Plus command, use only a backslash (\) at the end of each line. This interpretation of the backslash has implications on how you specify full paths in OMB*Plus, as described in “Specifying Paths”.

Tcl also uses the backslash as the least preferred method for escaping special characters.

Use curly braces as the preferred method as described in “Escaping Special Characters and Writing Complex Arguments”.


The semicolon separates two commands in Tcl. Using a semicolon in a quoted string results in an error. As a work around, escape the semicolon character by putting a backward slash (\) in front of the semicolon.

Number sign (#)

The number sign (#) is to indicate that a comment will follow.

Exclamation point (!)

Do not use an exclamation point (!) because it is the the logical NOT and then an illegal character.

Documentation / Reference

Powered by ComboStrap