xref: /openbsd-src/regress/usr.bin/mandoc/roff/string/escape.in (revision 943fb9d8c7fc1b7e0db8c617168f7360d3ee357c)
$OpenBSD: escape.in,v 1.3 2017/07/04 14:53:27 schwarze Exp $
STRING-ESCAPE 1 "December 3, 2010"
NAME
string-escape - preventing string interpolation
DESCRIPTION
Normal interpolation
result: \*[inner]

The above line must be "result: *[right]".

Intervening character
result: \e*[right]

The above line must be "result: backslash*[right]", not "result: rong".

Escaped backslash
result: \\*[right]

The above line must be "result: backslash*[right]", not "result: rong".

Delayed interpolation
result: \*[outer]

The above line must be "result: *[right]", not "result: wrong".