Red Hat Bugzilla – Bug 43366
groff is confused by '-' at end of arg list if given filenames
Last modified: 2007-04-18 12:33:33 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.2-2 i686)
Description of problem:
If invoked as "groff foo -", groff is supposed to process first "foo" and
stdin. Instead, it bails, with the complaint
"gzip: stdin: Bad file descriptor"
Steps to Reproduce:
1. echo hello > hello.nr; echo world > world.nr # sample input
2. cat hello.nr | groff - world.nr | ghostview - # this works
3. cat world.nr | groff hello.nr - | ghostview - # this fails and whines
Actual Results: step 3 reports
gzip: stdin: Bad file descriptor
and processes only "hello.nr"
Expected Results: Output of steps 2 & 3 should be identical.
Failure on step 3 is a regression.
The bug is in groff, not ghostview.
Also, invoking groff with '-mm' in the examples will make it easier to
see the bug in ghostview, but isn't necessary; I was just trying to give
you as clean
a testcase as I could.
FWIW, the bug breaks a feature frequently used by all the regular troff
users I've talked to, and will require hacking up both scripts and
makefiles to get around.
I just ran into this problem. It is, indeed, going to require that I hack
around several scripts to get them to work right. Ugh.
This is fixed in RHL8 with groff-1.18-8 from rawhide.
Florian La Roche