summaryrefslogtreecommitdiffstats
path: root/roff.7
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-05-31 23:13:22 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-05-31 23:13:22 +0000
commit5f583ef2a3779e8da83ba709d6e52a4f02128944 (patch)
treee73e89eba9e1c2780aced339e5502c5089c18a4e /roff.7
parent5373b2a71ace884d212b28f776126998d22b6229 (diff)
downloadmandoc-5f583ef2a3779e8da83ba709d6e52a4f02128944.tar.gz
Implement the roff(7) `r' (register exists) conditional.
Missing feature found by Markus <Waldeck at gmx dot de> in Debian's bash(1) manual page.
Diffstat (limited to 'roff.7')
-rw-r--r--roff.77
1 files changed, 5 insertions, 2 deletions
diff --git a/roff.7 b/roff.7
index d7515f40..d8fc0c04 100644
--- a/roff.7
+++ b/roff.7
@@ -1057,8 +1057,6 @@ If the first character of COND is
.Pq string defined ,
.Sq e
.Pq even page ,
-.Sq r
-.Pq register accessed ,
.Sq t
.Pq troff mode ,
or
@@ -1066,6 +1064,11 @@ or
.Pq vroff mode ,
COND evaluates to false.
.It
+If the first character of COND is
+.Sq r ,
+it evalutes to true if the rest of COND is the name of an existing
+number register; otherwise, it evaluates to false.
+.It
If COND starts with a parenthesis or with an optionally signed
integer number, it is evaluated according to the rules of
.Sx Numerical expressions