News for hackers. Stuff that matters.
Re:A Unix Shell poster from 1983 by fredsted on Monday October 15, 2018 @02:50AM (#18217873)
Interesting that `pr` and `troff` still exists on OS X Mojave!
Re:A Unix Shell poster from 1983 by OskarS on Monday October 15, 2018 @04:31AM (#18218230)
`pr` is part of the POSIX standard, so of course it still hangs around! Can't remove a thing like that! I don't think `troff` is part of POSIX, but since it used to be (still is?) the standard tool for typesetting man pages, it's not so surprising it's still around.
Re:A Unix Shell poster from 1983 by pjc50 on Monday October 15, 2018 @04:51AM (#18218299)
Man pages are typeset with nroff to the console and troff to the printer. Yes, you can print manpages, and they turn out quite nice: try "man -t bash > bash.ps" to produce a postscript file which can be printed or converted to PDF etc.
Re:A Unix Shell poster from 1983 by xelxebar on Monday October 15, 2018 @05:18AM (#18218391)
Okay. You kind of blew my mind. My `man` command doesn't seem to have the `-t` switch, but I can do this

    MANPAGER=mupdf man -T pdf man
and, bam! I'm reading a pdf man page for `man`. On my system `man` is symlinked to `mandoc` and I've apparently got the latest version from here:

http://mandoc.bsd.lv/

Better yet, the `-T` switch seems to take a decent selection of options, even markdown and html!

Re:A Unix Shell poster from 1983 by saagarjha on Monday October 15, 2018 @04:25AM (#18218215)
pr is part of SUS, which macOS must implement to remain called "Unix".