XPS-Q8
Tcl Manual
This is line two.
This is line three."
•
During command substitution, newlines and semicolons
are
significant as
command terminators. If you have a long command that is nested in square brackets,
put a backslash before the newline if you want to continue the command on another
line.
•
A dollar sign followed by something other than a letter, digit, underscore, or left
parenthesis is treated as a literal dollar sign. The following sets
x
to the single
character
$
.
set
x $
2.3
Reference
2.3.1
Backslash Sequences
\a
Bell. (0x7)
\b
Backspace. (0x8)
\f
Form feed. (0xc)
\n
Newline. (0xa)
\r
Carriage return. (0xd)
\t
Tab. (0x9)
\v
Vertical tab. (0xb)
\<newline>
Replace the newline and the leading white space on the next line
with a space.
\\
Backslash. (‘\’)
\
ooo
Octal specification of character code. 1, 2, or 3 digits.
\x
hh
Hexadecimal specification of character code. 1 or 2 digits.
\u
hhhh
Hexadecimal specification of a 16-bit Unicode character value. 4
hex digits.
\
c
Replaced with literal
c
if
c
is not one of the cases listed above. In
particular, \$, \", \{, \}, \], and \[ are used to obtain these characters.
2.3.2
Arithmetic Operators
- ~ !
Unary minus, bitwise NOT, logical NOT.
* / %
Multiply, divide, remainder.
+ -
Add, subtract.
<< >>
Left shift, right shift.
< > <= >= Comparison: less, greater, less or equal, greater or equal.
== !=
Equal, not equal.
&
Bitwise AND.
^
Bitwise XOR.
|
Bitwise OR.
&&
Logical AND.
||
Logical OR.
x
?
y
:
z
If
x
then
y
else
z
.
EDH0307En1041 — 10/17
14