"G. Branden Robinson" <[email protected]> writes:

> Yes, on two levels.
>
> First, it's never^Wseldom necessary to tell groff `-Z` only to pipe its
> output to an output driver by hand.[1]  If you want to pass an option to
> the output driver, use groff's `-P` option.
>
> groff(1):
>
> Options
> ...
>    groff‐specific options
>      The following options either do not exist in GNU troff or are
>      interpreted differently by groff.
> ...
>      -P arg   Pass arg to the postprocessor.  If multiple args are
>               required, pass each with a separate -P option.  groff does
>               not prefix an option dash to arg before passing it to the
>               postprocessor.
>
> So you could simplify:
>
>>     $ groff -Z -Tutf8 -man man/ls.1 | grotty -c
>
> as:
>
> $ groff -man -Tutf8 -P -c man/ls.1

Ah, I saw the warning about -Z. But for some reason I missed the -P
option.

That makes sense now, thanks.

Collin

Reply via email to