Follow-up Comment #2, bug #67646 (group groff): Nah, I think the _mdoc_ in 4.4BSD-Lite2 (and thus in early _groff) was just wrong. You can define your own string `.S` and it doesn't get "called" (interpolated).
$ printf '.ds .S fnord\n.Dd 2025-10-28\n.Dt foo 1\n.Os "groff test suite"\n.Sh
Name\n.Nm foo\n.Nd frobnicate a bar\n.Sh Description\n.Em foo .S bar\n' |
~/groff-HEAD/bin/nroff -mdoc
foo(1) General Commands Manual
foo(1)
Name
foo —— frobnicate a bar
Description
foo .S bar
groff test suite 2025‐10‐28
foo(1)
$ printf '.ds .S fnord\n.Dd 2025-10-28\n.Dt foo 1\n.Os "groff test suite"\n.Sh
Name\n.Nm foo\n.Nd frobnicate a bar\n.Sh Description\n.Em foo .S bar\n' |
~/groff-HEAD/bin/nroff -M HISTORY/MDOC/1995-4.4BSD-Lite2/ -mdoc.4.4BSD-Lite2 |
cat -s
Name
foo0 − frobnicate a bar
Description
foo .S bar0
(No page header or footer! Ghastly.)
I'm not going to worry about the trailing zeroes when _groff_ uses the
4.4BSD-Lite2 _mdoc_ macros. Not until someone makes a good case for why they
should work.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?67646>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
