Follow-up Comment #3, bug #67815 (group groff): [comment #2 comment #2:] > Appears to be a bad variable initialization.
> $ git blame --no-progress src/roff/groff/groff.cpp | fgrep 'bool
> want_unsafe'
> 3a1b01474d src/roff/groff/groff.cpp (G. Branden Robinson 2025-10-07 13:06:25
> -0500 165) bool want_unsafe_mode = true;
This is a good catch--thanks! Expect a regression test and a fix in my next
push.
[comment #1 comment #1:]
> I also find the 1.23 version of the error message, which contains the actual
> request name being complained about,
Not so. It says "sy" regardless of what the "actual" request name is.
Observe.
$ printf '.rn sy os-command\n.sy\n.os-command true\n' |
~/groff-1.22.3/bin/groff -wmac
<standard input>:2: warning: macro `sy' not defined
<standard input>:3: .sy request not allowed in safer mode
So, our hapless inexpert user wails, it's both not defined *and* not
allowed?!
> more useful than the git HEAD version, which does not. (But since this _is_
> an intentional change, I expect the author of that change will disagree with
> me.)
Yes. And my disagreement with you here is predicated, I think, on the same
difference in perspective causing us to clash in bug #68717: you underestimate
the imaginativeness of users employing GNU _troff_ copious facilities for
renaming and aliasing things.
In a contest between being helpful and being scrupulously truthful, I think
_groff_'s diagnostic, debugging, and other forms of output intended for user
assistance must favor the latter.
If you've never lost time in debugging because something helpfully "fibbed" to
you about what was going on, you're a fortunate person indeed.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?67815>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
