>> 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. > >Thanks for taking this on, Casper. From a >modernization/familiarization perspective (yes, I know you don't like >that word!) I'm happy to see this being worked on. > >> 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 > >Although I think that's sufficient, my initial thought on this (it's >something we've been looking at from the modernization perspective) was >along the merging/folding in the bulk (or all) of the /usr/ucb/ps >functionality directly, and provide a symlink for /usr/ucb/ps to >/usr/bin/ps. In that way, there is just a single ps(1) to maintain in >the future.
That is the objective, but the initial merge may not strip out all duplicate implementations. Casper _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
