>Linux and Mac OS also work this way.
>
>The man page for Solaris seems not to describe the Berkeley syntax. Mac OS
>sort of does, though I think the description is misleading. The Linux man page 
>is the most explicit.

There are two manual pages ps(1) and ps(1b).

I probably should add a cross reference to both the manual pages.

The ps behaviour is different on how it is called and which arguments
you pass:

/usr/bin/ps     - defaults to SVr4
/usr/ucb/ps     - defaults to UCB

If there's at least one argument and it doesn't start with a "-", use ucb.
If there's at least one argument and it starts with a "-", see if they're not
all ucb options, use SVr4.

Else use the default.

ps uxga 
/usr/ucb/ps -uxga  (as above)
/usr/bin/ps -uxga (error: ps: unknown user xga)
/usr/ucb/ps -ef (just like SVr4 ps -ef)

Casper

_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to