Joerg Schilling wrote: > "Peter Tribble" <[EMAIL PROTECTED]> wrote: > > >>> 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 >>> >> The first is right; the second I'm not so sure. How I've had this for the >> last decade (and is similar to the way that some other ps implementations >> seemed to behave) is that if there's an argument starting with "-", be >> /usr/bin/ps. >> > > I would say: if the first arg start with "-", be /usr/bin/ps, else be > /usr/ucb/ps > > If invoked as /usr/bin/ps, or found through PATH=/usr/bin:.... Then yes. definitely.
But since /usr/ucb/ps currently takes 'aux' or '-aux' (for example) then if invoked as /usr/ucb/ps, or found through PATH=/usr/ucb:..., then I think it's correct to continue the /usr/ucb behavior. -Kyle > > > Jörg > > _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
