ps enhencements (posix syntax, and more)

Cyrille Lefevre clefevre-lists at 9online.fr
Tue Apr 27 01:34:40 PDT 2004


repost to -standard due to rbl,

not CC'ed Albert Cahalan <albert at users.sourceforge.net>;
Jilles Tjoelker <jilles at stack.nl>; Garance A Drosihn <drosih at rpi.edu>

"Garance A Drosihn" <drosih at rpi.edu> wrote:
> 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.

will be fixed in the next patch set using #if.

Cyrille Lefevre.
-- 
home: mailto:cyrille.lefevre at laposte.net



More information about the freebsd-standards mailing list