Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Apr 2004 21:47:23 -0400
From:      Garance A Drosihn <drosih@rpi.edu>
To:        "Cyrille Lefevre" <root@gits.dyndns.org>, "Albert Cahalan" <albert@users.sourceforge.net>
Cc:        freebsd-standards@freebsd.org
Subject:   Re: ps enhencements (posix syntax, and more)
Message-ID:  <p06020425bcae226ad342@[128.113.24.47]>
In-Reply-To: <01b401c428d1$27f77060$7890a8c0@dyndns.org>
References:   <019601c426b0$77dc91a0$7890a8c0@dyndns.org><1082504719.3444.534.camel@cube ><00ba01c427f3$b3477f40$7890a8c0@dyndns.org> <1082588650.3450.628.camel@cube> <01b401c428d1$27f77060$7890a8c0@dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
At 3:19 AM +0200 4/23/04, Cyrille Lefevre wrote:
>"Albert Cahalan" <albert@users.sourceforge.net> wrote:
>>
>>  No, the point was that adding **any** option to switch
>>  parser modes kind of defeats the whole idea of trying
>>  to be compatible with anything.
>
>as suggested by Garrett Wollman, I will change -qQ to -W
>something, as done before through -X posix,etc. which have
>been retired from the current version.

Don't go changing things around yet again.  I don't think
Garrett *requested* a change.  He just pointed out that -W
is reserved "for the implementation".

>  > You can switch via $PATH and/or some other environment variable.
>
>currently, mode switch is also done through [...] and using
>an environment variable (see another email about that).
>but, some others dislike environment variables...

I have no intention of installing any updates which cause `ps'
to completely change it's behavior and accepted options based
on the value of an environment variable.

>  > >         static char bsd_fmtstr[] = "\
>>  > label:Z user:[ju](n!)& uid:([ju]n&)([ls]([ju]!)&)| pid:2! ppid:[jl] \
>>  > pgid:j sid:jX& tpgid:jX& tsid:jX& jobc:j sig:s sigmask:s sigignore:s \
>>  > sigcatch:s cpu:l pri:l nice:l %cpu:u %mem:u vsz:[lu] rss:[lu] \
>>  > mwchan:l(n!)& nwchan:ln& tt:[d2u](vX&)| state:1! tt:[jls]([du]!)& \
>>  > start:u time:1! sl:v re:v pagein:v vsz:v([lu]!)& rss:v([lu]!)& lim:v \
>>  > tsiz:v %cpu:v(u!)& %mem:v(u!)& command:1! \
>>  > ";
>>
>>  I am reminded of sendmail. You're getting close.
>
>maybe, but this kept the code as small as possible. encode this
>using if else if etc. and the code will be at least twice the
>actual one.

I am not sure of all that that section of code is doing, but I
will say that I am a little uncomfortable with how cryptic that
fmtstr is.

-- 
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?p06020425bcae226ad342>