diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-05-31 23:13:22 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-05-31 23:13:22 +0000 |
commit | 5f583ef2a3779e8da83ba709d6e52a4f02128944 (patch) | |
tree | e73e89eba9e1c2780aced339e5502c5089c18a4e /roff.7 | |
parent | 5373b2a71ace884d212b28f776126998d22b6229 (diff) | |
download | mandoc-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.7 | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |