From be3e970f578850301090009923eccbd3a255b801 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 31 May 2015 23:13:22 +0000 Subject: Implement the roff(7) `r' (register exists) conditional. Missing feature found by Markus in Debian's bash(1) manual page. --- roff.7 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'roff.7') 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 .\" Copyright (c) 2010, 2011, 2013, 2014 Ingo Schwarze @@ -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 -- cgit v1.2.3-56-ge451