]> git.cameronkatri.com Git - mandoc.git/blob - regress/roff/string/escape.in
Using an undefined string or macro will cause it to be defined as empty.
[mandoc.git] / regress / roff / string / escape.in
1 .\" $OpenBSD: escape.in,v 1.3 2017/07/04 14:53:27 schwarze Exp $
2 .TH STRING-ESCAPE 1 "December 3, 2010"
3 .SH NAME
4 string-escape - preventing string interpolation
5 .SH DESCRIPTION
6 .ds right wrong
7 .ds inner *[right]
8 .ds outer \\*[inner]
9 .SS Normal interpolation
10 result: \*[inner]
11 .PP
12 The above line must be "result: *[right]".
13 .SS Intervening character
14 result: \e*[right]
15 .PP
16 The above line must be "result: backslash*[right]",
17 not "result: rong".
18 .SS Escaped backslash
19 result: \\*[right]
20 .PP
21 The above line must be "result: backslash*[right]",
22 not "result: rong".
23 .SS Delayed interpolation
24 result: \*[outer]
25 .PP
26 The above line must be "result: *[right]",
27 not "result: wrong".