These characters will be replaced with escape sequences:
Value: | Characters: |
---|---|
0x01 - 0x1f | ASCII control characters |
0x22 | " double quotes |
0x25 | % percent sign |
0x26 | & ampersand |
0x3c | < less-than sign |
0x3e | > greater-than sign |
0xb5 | [ open bracket |
0x5c | \ backslash |
0x5d | ] close bracket |
0x5e | ^ caret |
0x60 | ` grave accent |
0x7c | | vertical bar |
0x7f | ASCII DEL character |
0x80 - 0x9f | C1 control characters |
0xa0 | non-breaking space |
0x10000 - 0x10ffff | any Unicode character not in the BMP |
TCC’s current command separator character | |
TCC’s current escape character | |
anything in the CESC_CHARS environment variable |
Two environment variables affect the escapification process:
CESC_CHARS
contains a list of characters to be escaped. This list is
in addition to the characters in the table above, which will always be escaped regardless
of CESC_CHARS
. For example, if you need the dollar sign to be replaced with
an escape sequence, you could:
set cesc_chars=$
CESC_FLAGS
is a bitmapped numeric value:
1 | escape all non-ASCII characters, i.e. everything above 0x7F DEL |
4 | use the nonstandard \e \q \c \k for ESC, double quote, comma, grave accent |
8 | allow short form of numeric escapes at the end of the string |