coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help with groff


From: Collin Funk
Subject: Re: help with groff
Date: Thu, 22 Jan 2026 19:17:09 -0800
User-agent: Gnus/5.13 (Gnus v5.13)

"G. Branden Robinson" <g.branden.robinson@gmail.com> 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

[Prev in Thread] Current Thread [Next in Thread]