On Sun, 14 Feb 1999, Rafal Maszkowski wrote:
> There are at least three (!) different trs on Solaris:
>
> rzm@galera:~/lsh,0> lt /usr/ucb/tr /usr/xpg4/bin/tr /usr/bin/tr
> -r-xr-xr-x 1 bin 14480 May 3 1996 /usr/xpg4/bin/tr
> -r-xr-xr-x 1 bin 15108 May 3 1996 /usr/bin/tr
> -rwxr-xr-x 1 bin 4676 May 3 1996 /usr/ucb/tr
I believe these conform to the following standards:
/usr/bin/tr - system V
/usr/ucb/tr - BSD
/usr/xpg4/bin/tr - X/Open Portability Guide Issue 4
Here's are excerpts from the Solaris man page which explains ...
nash
--------------------------------------------------------------------
Headers, Environments, and Macros standards(5)
...
Solaris supports IEEE Std 1003.1 and IEEE Std 1003.2, commonly
known as POSIX.1 and POSIX.2, respectively. ...
...
Solaris also supports the X/Open Common Applications
Environment (CAE) Portability Guide Issue 3 (XPG3), Issue 4
(XPG4), Issue 4 Version 2 (XPG4v2), and Networking Services
Issue 4 (XNET4).
...
For applications wishing to take advantage of POSIX.2, POSIX.2a, XPG4,
or XPG4v2 features, the PATH (sh or ksh) or path (csh)
environment variables should be set with /usr/xpg4/bin
preceding any other directories in which utilities specified
by those specifications are found, such as /bin, /usr/bin,
/usr/ucb, and /usr/ccs/bin.
...
SEE ALSO
sysconf(3C), environ(5), interface64(5)
SunOS 5.6 Last change: 11 Apr 1997 3
--------------------------------------------------------------------