bash: ANSI-C Quoting
1
1 3.1.2.4 ANSI-C Quoting
1 ......................
1
1 Words of the form '$'STRING'' are treated specially. The word expands
1 to STRING, with backslash-escaped characters replaced as specified by
1 the ANSI C standard. Backslash escape sequences, if present, are
1 decoded as follows:
1
1 '\a'
1 alert (bell)
1 '\b'
1 backspace
1 '\e'
1 '\E'
1 an escape character (not ANSI C)
1 '\f'
1 form feed
1 '\n'
1 newline
1 '\r'
1 carriage return
1 '\t'
1 horizontal tab
1 '\v'
1 vertical tab
1 '\\'
1 backslash
1 '\''
1 single quote
1 '\"'
1 double quote
1 '\?'
1 question mark
1 '\NNN'
1 the eight-bit character whose value is the octal value NNN (one to
1 three digits)
1 '\xHH'
1 the eight-bit character whose value is the hexadecimal value HH
1 (one or two hex digits)
1 '\uHHHH'
1 the Unicode (ISO/IEC 10646) character whose value is the
1 hexadecimal value HHHH (one to four hex digits)
1 '\UHHHHHHHH'
1 the Unicode (ISO/IEC 10646) character whose value is the
1 hexadecimal value HHHHHHHH (one to eight hex digits)
1 '\cX'
1 a control-X character
1
1 The expanded result is single-quoted, as if the dollar sign had not been
1 present.
1