Re: man(1)

From: Steve Kargl <sgk_at_troutmask.apl.washington.edu>
Date: Wed, 4 Aug 2004 06:50:56 -0700
On Wed, Aug 04, 2004 at 03:47:56PM +0300, Ruslan Ermilov wrote:
> On Wed, Aug 04, 2004 at 07:15:25AM -0500, Bob Willcox wrote:
> > On Wed, Aug 04, 2004 at 01:53:44PM +0200, Simon L. Nielsen wrote:
> > > On 2004.08.04 10:35:32 +0300, Ruslan Ermilov wrote:
> > > > On Wed, Aug 04, 2004 at 09:30:12AM +0200, Simon L. Nielsen wrote:
> > > >
> > > > > Well, it can be done without a patch... I use the following tcsh alias
> > > > > so I can just write 'manf foo.1' :
> > > > >
> > > > > groff -Wall -Tascii -te -mandoc !^ | less
> > > > >
> > > > You need to use ``-mtty-char -man'' to get the correct output.  (-man
> > > > or -mandoc doesn't matter.)
> > > 
> > > OK, I will update my alias :).
> > > 
> > > So the most correct command would be:
> > > 
> > > groff -Wall -Tascii -te -mtty-char -man
> > 
> > What's wrong with:
> > 
> > nroff -man
> > 
> In most cases it will do, but nroff(1) doesn't provide an option to tell
> groff(1) to preprocess with eqn(1), and some manpages require preprocessing
> with it.
> 

What's wrong with a pipe?  My alias looks like

cat !* | eqn | tbl | nroff -mdoc | more


-- 
Steve
Received on Wed Aug 04 2004 - 11:50:56 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:04 UTC