Debian bug report logs - #1713, boring messages


Message sent to debian-devel@pixar.com:


Subject: Bug#1713: procps: manpage doesn't tell the truth
Reply-To: joey@finlandia.Infodrom.North.DE (Martin Schulze), debian-bugs@pixar.com
Resent-From: joey@finlandia.Infodrom.North.DE (Martin Schulze)
Resent-To: debian-devel@pixar.com
Resent-Date: Fri, 20 Oct 1995 15:18:03 GMT
Resent-Message-ID: <debian-bugs-handler.1713.B10201509590@pixar.com>
Resent-Sender: iwj10@cus.cam.ac.uk
X-Debian-PR-Package: procps
X-Debian-PR-Keywords: 
Received: via spool for debian-bugs; Fri, 20 Oct 1995 15:18:03 GMT
Received: with rfc822 via encapsulated-mail; Fri, 20 Oct 1995 15:09:56 GMT
Received: from pixar.com by mongo.pixar.com with smtp
	(Smail3.1.28.1 #15) id m0t6J2Z-0002qNC; Fri, 20 Oct 95 08:07 PDT
Received: from gimli.Informatik.Uni-Oldenburg.DE by pixar.com with SMTP id AA24247
  (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Fri, 20 Oct 1995 08:06:56 -0700
Received: by gimli.Informatik.Uni-Oldenburg.DE (Smail3.1.22.1)
	id <m0t6HPh-00003rC>; Fri, 20 Oct 95 14:23 CET
Received: by olis.north.de (/\==/\ Smail3.1.28.1 #28.13)
	id <m0t6Fiu-0005Y1C@olis.north.de>; Fri, 20 Oct 95 12:34 MEZ
Received: at Infodrom Oldenburg (/\##/\ Smail3.1.29.1 #29.10 Joey)
	by finlandia.Infodrom.North.DE from joey (Martin Schulze)
	id m0t6Fjt-000K0ZC; Fri, 20 Oct 95 12:35 MET
Message-Id: <m0t6Fjt-000K0ZC@finlandia.Infodrom.North.DE>
Date: Fri, 20 Oct 95 12:35 MET
From: joey@finlandia.Infodrom.North.DE (Martin Schulze)
To: debian-bugs@pixar.com


Package: procps
Version: 0.97
Package_Revision: 4

The manpage ps(1) tells us:

------------------------------- happs 8<------------------------------
COMMAND-LINE OPTIONS
       Command line arguments may optionally be  preceeded  by  a
       '-',  but  there  is  no need for it.  There are also some
       "long options" in GNU style; see below for those.

       (..)

       w    wide  output:  don't truncate command lines to fit on
            one line.
------------------------------- happs 8<------------------------------

But ps does something else. You may specify up to three 'w's in the
command line and you'll only understand the behaviour if you look at
the code:

------------------------------- happs 8<------------------------------
int set_maxcmd(int w_opts)
{
    struct winsize win;

    maxcols = 80;
    if (ioctl(1, TIOCGWINSZ, &win) != -1 && win.ws_col > 0)
        maxcols = win.ws_col;

    switch (w_opts) {
        case 0: break;
        case 1: maxcols += 52; break;
        case 2: maxcols *= 2; break;
        default: maxcols = MAXCMD;
    }
    return maxcols - strlen(hdrs[CL_fmt]) + 7;
}
------------------------------- happs 8<------------------------------

I would recommend a) change the manpage entry or b) change the whole
handling of 'w'-processing. If the maintainer is interested, I can
send him a patch for the latter

Regards,

	Joey

--
   / Martin Schulze  *  joey@infodrom.north.de  *  26129 Oldenburg /
  / +49-441-777884  *  Login&Passwd: nuucp  *  Index: ~/ls-lR.gz  /
 /                                     http://home.pages.de/~joey/
/ Linux - the choice of a GNU generation                        /
----------------------------------------------------------------
30.10.95: Oldenburger Linux-Stammtisch, ab 20h im DaCapo


Message sent:


From: iwj10@thor.cam.ac.uk (Ian Jackson)
To: joey@finlandia.Infodrom.North.DE (Martin Schulze)
Subject: Bug#1713: Acknowledgement (was: procps: manpage doesn't tell the truth)
In-Reply-To: <m0t6Fjt-000K0ZC@finlandia.Infodrom.North.DE>
References: <m0t6Fjt-000K0ZC@finlandia.Infodrom.North.DE>

Thank you for the problem report you have sent regarding Debian GNU/Linux.
This is an automatically generated reply, to let you know your message has
been received.  It is being forwarded to the developers' mailing list for
their attention; they will reply in due course.

If you wish to submit further information on your problem, please send
it to debian-bugs@pixar.com, but please ensure that the Subject
line of your message starts with "Bug#1713" or "Re: Bug#1713" so that
we can identify it as relating to the same problem.

Please do not reply to the address at the top of this message,
unless you wish to report a problem with the bug-tracking system.

Ian Jackson
(maintainer, debian-bugs)


Ian Jackson / iwj10@thor.cam.ac.uk, with the debian-bugs tracking mechanism
This page last modified 07:43:01 GMT Wed 01 Nov