James Carlson wrote: > [EMAIL PROTECTED] writes: >> One particular annoyance of mine being that it is fairly easy to write a >> single ps which does both "ps -ef" and "ps uxga". > > Not only easy to write, but that's the default on other OSes. (AIX > had that a decade or more ago. :-<) > > That's one of the sorts of things that are hard to fix, even though > easy to write. It's not a big project, and you can't point to $1e9 of > new revenue to fix minor annoyances, so it has to be done in someone's > copious free time. >
Agreed, especially since both ps's are really the same program: % ls -ilF /usr/bin/ps /usr/ucb/ps 198275 -r-xr-xr-x 71 root bin 8164 Jan 27 02:11 /usr/bin/ps* 198275 -r-xr-xr-x 71 root bin 8164 Jan 27 02:11 /usr/ucb/ps* I'm sure we'll get this done eventually... :-) In the meantime: I was whining about this to Andy Rudoff a few years ago, and he quickly came back with the following csh alias to paper over the difference: # Use /usr/ucb/ps if there is no argument starting with a - alias ps '(if ("\!*" == "") exec /usr/bin/ps; if ("\!*" =~ -*) exec /usr/bin/ps \!*; exec /usr/ucb/ps \!*)' Later, I put this into my .bashrc: # Use /usr/ucb/ps if there are arguments and they start without a '-'. # This lets me cling to to the BSD flags while still having standard # ps available. function ps() { case "$1" in -*|"") /usr/bin/ps $* ;; *) /usr/ucb/ps $* ;; esac } I still think we should adopt the merged behavior, but this has made my fingers happy for several years now. - Ali _______________________________________________ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org