TCL - Curly Braces ({) and (})


Tcl uses curly braces ({) and (}) as preferred method for escaping special characters and writing valid, complex arguments. For the following situations, you can enclose the element in braces and leave the contents alone:

  • The element contains embedded spaces.
  • The element contains one of the Special Characters.
  • The element starts with a brace or double-quote.
  • There are no characters in the element.

You should consider using the backslash for escaping only in the limited situations that using curly braces results in unmatched braces, the last character of the argument is a backslash, or the element contains a backslash followed by another backslash indicating a new line.

Documentation / Reference

Powered by ComboStrap