String constants consist of a sequence of zero or more printable characters, including spaces, surrounded by double quotes. Control characters are not allowed in strings, and the use of non-ASCII characters (e.g. accented characters) is discouraged. Unlike in C, the backslash has no special meaning in a string.
Strings can be concatenated with +
, and compared with the relational
operators. Note that, unlike Perl, tcng does not try to convert
strings to numbers in this case.
Examples:
"local"+"host" |
yields "localhost" |
"010" == "10" |
is false |