delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/11/24/12:21:14

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 24 Nov 2004 12:20:52 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: Manual page width is fixed and I'd like it not to be
In-Reply-To: <41A4C0C7.9553CB55@dessent.net>
Message-ID: <Pine.GSO.4.61.0411241214400.14489@slinky.cs.nyu.edu>
References: <20041123214434 DOT 51713 DOT qmail AT web53409 DOT mail DOT yahoo DOT com> <41A3D1DB DOT EAA69D26 AT dessent DOT net> <Pine DOT GSO DOT 4 DOT 61 DOT 0411241057560 DOT 14489 AT slinky DOT cs DOT nyu DOT edu> <41A4C0C7 DOT 9553CB55 AT dessent DOT net>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Wed, 24 Nov 2004, Brian Dessent wrote:

> Igor Pechtchanski wrote:
>
> > > > -NROFF          /usr/bin/nroff -c -mandoc 2>/dev/null
> > > > +NROFF          /usr/bin/nroff -c -mandoc -rLL=`echo $MANWIDTH`n -rLT=`echo $MANWIDTH`n 2>/dev/null
> > >
> > > Just a little more info about how debian does this, in case someone
> > > wants to flesh this out for it to do "the right thing".
> > > [snip]
> > > I think they must be using their own patched version of man which adds
> > > all of the above functionality.  "man --version" says "man, version
> > > 2.4.2, 2003-09-20".  It has no man.conf that I can find.
> >
> > As I said in <http://cygwin.com/ml/cygwin/2004-11/msg00941.html>, the
> > problem is not with man, but with groff.  With MANWIDTH=130, Cygwin's man
> > dutifully echoes '.ll 11.7i', which the nroff process promptly ignores.
>
> groff works fine.  Try the patch above to pass it "LL" and "LT"
> parameters on the command line and it formats to whatever width you
> specify.  The problem is that man does not do this.  I think the "echo
> .ll" business is needed for tbl's sake.
>
> Brian

Well, on my RedHat 7.3 system man produces the following command:

$ MANWIDTH=130 man -cd man 2>&1 | tail -1
  (cd /usr/share/man && (echo ".ll 11.7i"; echo ".pl 11i"; /usr/bin/gunzip -c '/usr/share/man/man1/man.1.gz') | /usr/bin/gtbl | /usr/bin/nroff -mandoc | /usr/bin/less -isr)

which is, AFAICS, the same as the one produced on Cygwin (except for
irrelevant details).  On RedHat 7.3, groff (well, nroff) heeds the ".ll"
command, and on Cygwin/RedHat 9 it doesn't.  I'm only assuming it's
because Cygwin/RedHat 9 have version 1.18.1, and RedHat 7.3 has 1.17.2.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019