TCL - Special Characters

About

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.

Articles Related

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

Semicolon(;)

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

  • Bookmark "TCL - Special Characters" at del.icio.us
  • Bookmark "TCL - Special Characters" at Digg
  • Bookmark "TCL - Special Characters" at Ask
  • Bookmark "TCL - Special Characters" at Google
  • Bookmark "TCL - Special Characters" at StumbleUpon
  • Bookmark "TCL - Special Characters" at Technorati
  • Bookmark "TCL - Special Characters" at Live Bookmarks
  • Bookmark "TCL - Special Characters" at Yahoo! Myweb
  • Bookmark "TCL - Special Characters" at Facebook
  • Bookmark "TCL - Special Characters" at Yahoo! Bookmarks
  • Bookmark "TCL - Special Characters" at Twitter
  • Bookmark "TCL - Special Characters" at myAOL
 
language/tcl/special_character.txt · Last modified: 2010/05/10 10:25 by gerardnico