Unified ps(1) [PSARC/2009/076 FastTrack timeout 02/16/2009]
James Carlson
james.d.carlson at sun.com
Mon Feb 9 13:38:24 PST 2009
Scott Rotondo writes:
> Garrett D'Amore wrote:
> > That said, I do sort of think that the rule you have, while workable, is
> > more confusing and violates the principle of least surprise. (I.e.
> > you added a switch by accident which suddenly changed the meaning of
> > other options in a totally unexpected fashion.)
>
> This approach (interpreting the options as either BSD or SVR4 depending
> on whether the dash is present) has been used for ps on other systems
> before. I don't think anyone will be terribly surprised.
Depending on the presence of "-" isn't novel. Other OSes have done
this before. Inspecting the options in a presumed-BSD-ish list and
reverting to SVR4 behavior if an unexpected option is seen _is_ new,
and it's what caused both Garrett and me to say something.
--
James Carlson, Solaris Networking <james.d.carlson at sun.com>
Sun Microsystems / 35 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
More information about the opensolaris-arc
mailing list