NetBSD-Bugs archive

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

Re: bin/50680: man page for top(1) does not properly display default delay



The following reply was made to PR bin/50680; it has been noted by GNATS.

From: Ingo Schwarze <schwarze%usta.de@localhost>
To: netbsd-bugs%netbsd.org@localhost
Cc: Thomas Klausner <wiz%NetBSD.org@localhost>, Christos Zoulas <christos%zoulas.com@localhost>,
        paul%whooppee.com@localhost
Subject: Re: bin/50680: man page for top(1) does not properly display default
 delay
Date: Sat, 23 Jan 2016 22:23:44 +0100

 Hi,
 
 there is no problem with mandoc.  The top(1) manual is just plain
 broken:  In the roff language, to interpolate the number contained
 in a register, you can use the \n escape sequence.  You cannot use
 the .af request for that purpose, that one serves a completely
 different purpose, see the roff documentation.  Groff renders it
 exactly the same way as mandoc.
 
 The following patch fixes the broken manual page.
 
 Yours,
   Ingo
 
 
 Index: top.1.in
 ===================================================================
 RCS file: /cvsroot/src/external/bsd/top/dist/top.1.in,v
 retrieving revision 1.7
 diff -u -p -r1.7 top.1.in
 --- top.1.in	23 Jan 2015 02:58:40 -0000	1.7
 +++ top.1.in	23 Jan 2016 21:16:59 -0000
 @@ -166,9 +166,7 @@ Only display the specified pid.
  .B "\-s \fItime\fP, \-\-delay=\fItime\fP"
  Set the delay between screen updates to
  .I time
 -seconds.  The default delay between updates is
 -.af D 1 
 -seconds.
 +seconds.  The default delay between updates is \nD seconds.
  .TP
  .B "\-U \fIusername\fP, \-\-user=\fIusername\fP"
  Show only those processes owned by
 



Home | Main Index | Thread Index | Old Index