summaryrefslogtreecommitdiffstats
path: root/regress/roff/string/escape.in
blob: 6f31ccb0ef256de2d5f6c003c288b15c3a7616d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.TH STRING-ESCAPE 1 "December 3, 2010" OpenBSD
.SH NAME
string-escape - preventing string interpolation
.SH DESCRIPTION
.ds right wrong
.ds inner *[right]
.ds outer \\*[inner]
.SS Normal interpolation
result: \*[inner]
.PP
The above line must be "result: *[right]".
.SS Intervening character
result: \e*[right]
.PP
The above line must be "result: backslash*[right]",
not "result: rong".
.SS Escaped backslash
result: \\*[right]
.PP
The above line must be "result: backslash*[right]",
not "result: rong".
.SS Delayed interpolation
result: \*[outer]
.PP
The above line must be "result: *[right]",
not "result: wrong".