Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Apr 2004 23:23:12 -0400
From:      Garance A Drosihn <drosih@rpi.edu>
To:        "Cyrille Lefevre" <root@gits.dyndns.org>, "Jilles Tjoelker" <jilles@stack.nl>
Cc:        Albert Cahalan <albert@users.sourceforge.net>
Subject:   Re: ps enhencements (posix syntax, and more)
Message-ID:  <p06020426bcae37c2d3de@[128.113.24.47]>
In-Reply-To: <01cb01c428d7$ea7592b0$7890a8c0@dyndns.org>
References:   <019601c426b0$77dc91a0$7890a8c0@dyndns.org><p0602040dbcab0fdc78a2@[128.11 3.24.47]> <1082504719.3444.534.camel@cube><00ba01c427f3$b3477f40$7890a8c0@dyndns.org >	<20040422172401.GA88130@stack.nl> <01cb01c428d7$ea7592b0$7890a8c0@dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
At 4:07 AM +0200 4/23/04, Cyrille Lefevre wrote:
>
>  > > Format string which contains both an equal sign and a comma
>  > > are considered to be comma only separated list. so, both
>  > > -o "pid=process id,ppid=parent pid,command=command line" and
>  > > -o "pid=child ppid=parent command=command" are well parsed,
>>  > unfortunately, mixing "user=user name,pid=pid command" isn't...
>>
>  > Hmm, FreeBSD 5.x follows the spec exactly in this respect,
>  > an equal sign marks the rest of the argument as header
>  > text, so I doubt whether it's worth doing this. Note that
>  > FreeBSD 4.x aborts header texts at a comma or space.
>
>any other opinion ?

"In my opinion":

    Each variable has a default header. The default header
    can be overridden by appending an equals sign and the
    new text of the header. The rest of the characters in
    the argument shall be used as the header text.

That is a quote from SUSv3.  I believe 5.x presently tries
to follow that, and that is what I think it should do.  As
to 4.x, the only reason 4.x still behaves the way it does is
that I avoided MFC-ing any commits which would *alter* the
behavior of how something worked in `ps'.  The only things I
MFC-ed were commits that cleaned up the code, or which added
new features.

-- 
Garance Alistair Drosehn            =   gad@gilead.netel.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p06020426bcae37c2d3de>