aboutsummaryrefslogtreecommitdiffstatshomepage
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
commitbe3e970f578850301090009923eccbd3a255b801 (patch)
tree755a8c3733f27b9fb0e351259dfe4891ef9da919 /roff.7
parent23ce90af4d0d1ec547a53b8a66448e146ec30065 (diff)
downloadmandoc-be3e970f578850301090009923eccbd3a255b801.tar.gz
mandoc-be3e970f578850301090009923eccbd3a255b801.tar.zst
mandoc-be3e970f578850301090009923eccbd3a255b801.zip
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.711
1 files changed, 7 insertions, 4 deletions
diff --git a/roff.7 b/roff.7
index 02b7212e..127504f8 100644
--- a/roff.7
+++ b/roff.7
@@ -1,4 +1,4 @@
-.\" $Id: roff.7,v 1.71 2015/04/29 18:35:00 schwarze Exp $
+.\" $Id: roff.7,v 1.72 2015/05/31 23:13:22 schwarze Exp $
.\"
.\" Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2010, 2011, 2013, 2014 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: April 29 2015 $
+.Dd $Mdocdate: May 31 2015 $
.Dt ROFF 7
.Os
.Sh NAME
@@ -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