Currently Solaris has two distinct versions of ps; to use one or the other
you need to either give the full path or change $PATH.
And that while a little bit of code could tell most invocations apart.
Because it has been bothering me I'd like to fix this and so I'd like to
ask some advice.
Merging the code in a simple fashion (renaming main ucbmain/stdmain and
calling one other the other) is straight forward enough but I'm not sure
how useful it is.
The simple plan is this:
- if called with an argument which does not start with "-",
be /usr/ucb/ps
- if called with an argument starting with "-" behave like ucb ps
or bin/ps depending on how the program was invoked
Solaris /usr/ucb/ps also has at least one compatibility issue I might want
to fix:
/usr/ucb/ps wwwwPPPPPP
where "P" is a pid does not work; you need to supply a space between the
<pid> and the other arguments. (An issue when you've just migrated)
Now that we but "ucb" ps code in standard ps, should we also allow
for long arguments list in normal ps as ucb/ps allows?
(Note that neither ps is set-uid at this time and that you can only see
the environment variables and long arguments of your own processes)
Casper
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code