gbranden pushed a commit to branch master
in repository groff.

commit b0963cb565d50dd7625f5f112be2a834224089f6
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Jan 16 00:13:37 2026 -0600

    doc/groff.texi.in: Update example of `sy` usage.
    
    Write more idiomatic shell, and less idiomatic *roff, to (in my eyes)
    clarify the logic, make it more illustrative when used, and underscore
    the point made in the footnote.
    
    Also try to clarify the footnote itself.
---
 doc/groff.texi.in | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/doc/groff.texi.in b/doc/groff.texi.in
index 5fdbe192c..ee3069427 100644
--- a/doc/groff.texi.in
+++ b/doc/groff.texi.in
@@ -19711,15 +19711,15 @@ running the formatter is
 command environments
 and @code{roff} formatters employ different integer-to-Boolean
 interpretation conventions;
-a @acronym{POSIX} command exits with a positive status
-if it
-@emph{fails},
+a @acronym{POSIX} command exits with a zero status if it succeeds
+and a positive one if it fails,
 whereas a @code{roff} register
 tests ``true'' if it has a positive value.}
 
 @Example
-.sy test "$(id -un)" != branden
-.if \n[systat] .ab formatting refused
+.ds user branden\"
+.sy test "$(id -un)" = \*[user]
+.if \n[systat]=0 .ab formatting refused for \*[user]
 Hello, world!
 @endExample
 @endDefreq

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to