I want to remove troff output support from indent(1)
Piotr P. Stefaniak
pstef at freebsd.org
Sun Feb 26 23:49:17 UTC 2017
On 2017-02-27 00:28:55, Baptiste Daroussin wrote:
>On Sun, Feb 26, 2017 at 03:08:00PM -0700, Warner Losh wrote:
>> On Sun, Feb 26, 2017 at 1:59 PM, Bob Bishop <rb at gid.co.uk> wrote:
>> > Hi,
>> >
>> >> On 26 Feb 2017, at 19:06, Piotr P. Stefaniak <pstef at freebsd.org> wrote:
>> >>
>> >> indent, the C source reformatting tool, has a -troff option to produce
>> >> roff output.
>> >>
>> >> I have a few issues with it:
>> >> 1) it doesn't work. When I view the resulting file with nroff(1) piped
>> >> to more(1) [etc]
>> >
>> > From man indent:
>> >
>> > "-troff Causes indent to format the program for processing by
>> > troff(1)"
>> >
>> > NB troff. Likely it was always broken with nroff.
>>
>> I know that I used indent from this time with troff output to print
>> things that looked OK. It had to be troff, because nroff didn't work
>> with the laser printer that we had...
>>
>> I have no trouble removing it, but I have first hand experience with
>> it working back in the day.
>>
>It seems that what broke is that if output of indent -troff was to be passed in
>a troff -mindent command line. meaning that there use to be a indent.tmac
>somewhere but neither groff, neither heirloom roff seems to be providing it at
>all a indent.tmac or equivalent.
>
>So I doubt it ever worked on FreeBSD. I can see online some documentation
>speaking about (on oracle website) and even some crazy french website saying it
>worked with groff, but can't find the file in groff history either
The troff output was invented at Sun and the online docs for some
post-SunOS operating system include this:
The usual way to get a troffed listing is with the command
indent -troff program.c | troff -mindent
The indent manpage in FreeBSD 1.0 already lacks that information and
troff -mindent complains about not being able to find the macro file.
So I guess the file did exist on SunOS and was supposed to be imported
into 4.3BSD together with the feature, but wasn't.
More information about the freebsd-arch
mailing list