On Tue, Apr 02, 2002 at 11:27:31PM -0500, Mark J. Reed wrote: > /usr/xpg4/bin/id -u To expand upon this:
When SunOS becamse Solaris, its base moved from BSD (Berkeley's UNIX-based OS) to System V (official UNIX from AT&T). For compatibility with System V applications (and with the POSIX standard), they had to give all of the standard commands in /bin (or /usr/bin) the System V semantics. However, the older behavior was in many cases superior, and those commands have been retained in /usr/xpg4. I tend to prefer the XPG version of most commands, so I have /usr/xpg4 before /usr/bin in my PATH. In cases where there was an even wider divergence between the BSD and System V commands (the ps(1) command being the most infamous example), you may find the BSD version in /usr/ucb (this is analogous to but reversed from the old SunOS case, where the System V versions were in /usr/5bin). Note that not all Solaris installs have these packages; I've found that more have /usr/xpg4 than /usr/ucb. -- Mark REED | CNN Internet Technology 1 CNN Center Rm SW0831G | [EMAIL PROTECTED] Atlanta, GA 30348 USA | +1 404 827 4754 -- Now I lay me down to sleep I pray the double lock will keep; May no brick through the window break, And, no one rob me till I awake.