[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 18/34: [doc,man]: Clarify logical "not" workaround.
From: |
G. Branden Robinson |
Subject: |
[groff] 18/34: [doc,man]: Clarify logical "not" workaround. |
Date: |
Mon, 16 Sep 2024 20:48:34 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 43a5e12da1c5fc95129b54e79dfaddeb5b724c16
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Sep 14 12:56:22 2024 -0500
[doc,man]: Clarify logical "not" workaround.
In a _simple_ conditional expression, an explicit comparison to a false
value is not necessary. Just use `!`.
---
doc/groff.texi.in | 5 +++--
man/groff.7.man | 4 +++-
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/doc/groff.texi.in b/doc/groff.texi.in
index c1963dd00..000ff7b21 100644
--- a/doc/groff.texi.in
+++ b/doc/groff.texi.in
@@ -6346,8 +6346,9 @@ it must be the ``outermost'' operator. Including it
elsewhere in the
expression produces a warning in the @samp{number} category
(@pxref{Warnings}), and its expression evaluates false. This
unfortunate limitation maintains compatibility with @acronym{AT&T}
-@code{troff}. Test a numeric expression for falsity by
-comparing it to a false value.@footnote{@xref{Conditionals and Loops}.}
+@code{troff}. Test a numeric expression for falsity within a complex
+expression by comparing it to a false value.@footnote{@xref{Conditionals
+and Loops}.}
@Example
.nr X 1
diff --git a/man/groff.7.man b/man/groff.7.man
index 3c1498bb0..b29766d3f 100644
--- a/man/groff.7.man
+++ b/man/groff.7.man
@@ -1145,7 +1145,9 @@ and its expression evaluates false.
This unfortunate limitation maintains compatibility with AT&T
.IR troff .\" AT&T
.
-Test a numeric expression for falsity by comparing it to a false value.
+Test a numeric expression for falsity
+within a complex expression
+by comparing it to a false value.
.
.
.P
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 18/34: [doc,man]: Clarify logical "not" workaround.,
G. Branden Robinson <=