URL: <https://savannah.gnu.org/bugs/?68790>
Summary: [troff] `rr` request stops processing arguments upon
encountering an invalid one
Group: GNU roff
Submitter: gbranden
Submitted: Sat 17 Oct 2026 08:46:44 PM UTC
Category: Formatter
Severity: 3 - Normal
Item Group: Incorrect behaviour
Status: In Progress
Privacy: Public
Assigned to: gbranden
Open/Closed: Open
Discussion Lock: Unlocked
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Sat 17 Oct 2026 08:46:44 PM UTC By: G. Branden Robinson <gbranden>
...contrary to our documentation.
_groff_diff_(7):
Solaris and Heirloom Doctools troffs’ rm and rr requests halt
argument processing upon encountering an invalid identifier. Those
of GNU, DWB, and Plan 9 from User Space troffs do not; they remove
objects named by any subsequent valid arguments.
Exhibit:
$ cat -v foo.roff
.nr a 1
.nr b 2
.nr c 3
.rr a ^B b
a=\n[a] b=\n[b] c=\n[c]
.br
.pl \n[nl]u
$ nroff foo.diff
troff:<standard input>:5: error: character code 2 is not allowed in an
identifier
troff:<standard input>:5: warning: register removal request expects valid
identifiers as arguments [-w syntax]
a=0 b=2 c=3
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68790>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
