[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ] ANSI-C Quoting

Words of the form $'string' are treated specially. The word expands to string, with backslash-escaped characters replaced as specified by the ANSI C standard. Backslash escape sequences, if present, are decoded as follows:

alert (bell)
an escape character (not ANSI C)
form feed
carriage return
horizontal tab
vertical tab
single quote
the eight-bit character whose value is the octal value nnn (one to three digits)
the eight-bit character whose value is the hexadecimal value HH (one or two hex digits)

The expanded result is single-quoted, as if the dollar sign had not been present.

This document was generated on May 3, 2002 using texi2html