blob: 339611e89a17813395fb6e0a904c01e9f8951649 (
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
27
|
.\" $OpenBSD: escape.in,v 1.3 2017/07/04 14:53:27 schwarze Exp $
.TH STRING-ESCAPE 1 "December 3, 2010"
.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".
|