diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-12-09 20:56:31 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-12-09 20:56:31 +0000 |
commit | cd3d4c2d437236c950f9786be9ad635ff386d44e (patch) | |
tree | 0440829851b2ad3436c10dc1b640d9c19b227c38 /share | |
parent | cffe1766d285fe42c06fcda8903fd8c9ac4f2be4 (diff) |
Roff only interpolates \* strings when the leading backslash is not escaped.
Kristaps@ agrees with the idea, even though he didn't review the final patch.
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man7/roff.7 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/share/man/man7/roff.7 b/share/man/man7/roff.7 index 983ab10906f..f625e83adae 100644 --- a/share/man/man7/roff.7 +++ b/share/man/man7/roff.7 @@ -1,4 +1,4 @@ -.\" $OpenBSD: roff.7,v 1.5 2010/11/30 22:40:13 jmc Exp $ +.\" $OpenBSD: roff.7,v 1.6 2010/12/09 20:56:30 schwarze Exp $ .\" .\" Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv> .\" Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org> @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: November 30 2010 $ +.Dd $Mdocdate: December 9 2010 $ .Dt ROFF 7 .Os .Sh NAME @@ -269,6 +269,9 @@ for a of arbitrary length, or \e*(NN or \e*N if the length of .Ar name is two or one characters, respectively. +Interpolation can be prevented by escaping the leading backslash; +that is, an asterisk preceded by an even number of backslashes +does not trigger string interpolation. .Pp Since user-defined strings and macros share a common string table, defining a string |