Follow-up Comment #7, bug #64597 (project groff): Hi Sven,
The difference here, perhaps a subtle one, is that the 'r' conditional operator doesn't *interpolate* a register. I have the following change pending in my Git working copy. commit b99fa24b508c8ca20356bde37de686986965177f Author: G. Branden Robinson <g.branden.robin...@gmail.com> Date: Sun Aug 27 04:05:31 2023 -0500 [docs]: Conditional operators don't create things. ...not registers or strings/macros/diversions, at any rate. Prompted by discussion with Peter Schaffter in <https://lists.gnu.org/archive/html/groff/2023-08/msg00142.html>. diff --git a/doc/groff.texi b/doc/groff.texi index 73c79c6f4..9fa6bd913 100644 --- a/doc/groff.texi +++ b/doc/groff.texi @@ -12853,6 +12853,9 @@ @node Operators in Conditionals The unexpected @samp{r x} in the output is a clue that our conditional was not interpreted as we planned, but matters may not always be so obvious. + +Conditional operators do not create @code{roff} language objects as +interpolations with @code{\n} and @code{\*} escape sequences do. @c END Keep (roughly) parallel with subsection "Conditional expressions" @c of groff(7). diff --git a/man/groff.7.man b/man/groff.7.man index 2fdb5e98b..a6cb0ed1a 100644 --- a/man/groff.7.man +++ b/man/groff.7.man @@ -2210,6 +2210,16 @@ .SS "Conditional expressions" . (This bizarre behavior maintains compatibility with AT&T .IR troff .) +. +. +.P +Conditional operators do not create +.I roff +language objects as interpolations with +.B \[rs]n +and +.B \[rs]* +escape sequences do. .\" END Keep (roughly) parallel with groff.texi node "Operators in .\" Conditionals". . [snip] _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?64597> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/