Subject: bin/14591: "man -h mail" gives too much output
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-bugs
Date: 11/15/2001 00:33:16
>Number:         14591
>Category:       bin
>Synopsis:       "man -h mail" outputs over 590 lines of junk
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 15 00:34:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        not current
>Organization:
http://bsd.reedmedia.net/
>Environment:
	
System: NetBSD rainier.reedmedia.net 1.5.1_BETA NetBSD 1.5.1_BETA (JCR-1.5-20010407) #0: Sat Apr 7 01:44:35 PDT 2001 reed@rainier:/usr/src/sys/arch/i386/compile/JCR-1.5-20010407 i386


>Description:
Using "man -h mail" gives extra junk:
man -h mail | wc   
     599    3936   27159

$ man -h mail | head
mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr...
mail [-iInNv] -f [name]
mail [-iInNv] [-u user]

INTRODUCTION
mail is an intelligent mail processing system, which has a command syntax
reminiscent of ed(1) with lines replaced by messages.

-v    Verbose mode.  The details of delivery are displayed on the user's
terminal.
-=-=-=-=-=-=-=-=-=-=-

I tried with newer mail.1, but no change.

/usr/bin/man:
     $NetBSD: crt0.c,v 1.11 2000/06/14 22:52:49 cgd Exp $
     $NetBSD: config.c,v 1.14 2000/05/29 21:10:42 jdolecek Exp $
     $NetBSD: man.c,v 1.25 2000/06/12 14:53:48 simonb Exp $

mail.1,v 1.16
mail.1,v 1.19

I didn't notice the problem with other manual pages, but only tried a few.

>How-To-Repeat:
man -h mail
>Fix:
It should simply do:

$ man -h mail | head
mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr...
mail [-iInNv] -f [name]
mail [-iInNv] [-u user]
$

Sorry no patch is provided; I don't know if this is caused by bad manual page,
but even if it is a bad mandoc, it should still not give bad results.
>Release-Note:
>Audit-Trail:
>Unformatted: