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

Re: How to test a manpage? ‘nroff -man | less’ does not display like ‘man’.



Am Mittwoch, den 14.07.2010, 15:48 +0200 schrieb Manuel A. Fernandez
Montecelo:
> On Wednesday 14 July 2010 06:50:57 Charles Plessy wrote:
[..]
> > The workaround I found was to copy the new manpage in /tmp/man/man1, and
> > call ‘man -M /tmp/man samtools’. Does anybody know how a more convenient
> > to display a manpage the same way as users will get it by using ‘man’ ?
[..]
> I don't know if this would help you, but the canonical (lintian) way to 
> check that everything is OK is like this:
> 
> LANG=en_US.UTF-8 MANWIDTH=80 man --warnings -E UTF-8 -l <file> >/dev/null
> 
> 
> You might want to pipe it through |less or something to check for visual 
> artifacts.

You'll of course see the warnings via `... >  /dev/null'. But I fully
agree to Manual. This is the usual way to check the manual page (at
least I always use this):

LANG=C MANWIDTH=80 man --warning -l <file>

Regards, Daniel


Reply to: