[BACK]Return to escape.in CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress / roff / string

File: [cvsweb.bsd.lv] / mandoc / regress / roff / string / escape.in (download)

Revision 1.3, Tue Jul 4 15:26:48 2017 UTC (6 years, 11 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6, VERSION_1_14_5, VERSION_1_14_4, VERSION_1_14_3, VERSION_1_14_2, HEAD
Changes since 1.2: +2 -1 lines

Messages of the -Wbase level now print STYLE:.  Since this
causes horrible churn anyway, profit of the opportunity to stop
excessive testing, such that this is hopefully the last instance
of such churn.  Consistently use OpenBSD RCS tags, blank .Os,
blank fourth .TH argument, and Mdocdate like everywhere else.
Use -Ios=OpenBSD for platform-independent predictable output.

.\" $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".