KASTURI VENKATA SESHA SASIDHAR wrote:
> Hello,
> I am working on open solaris bugs .. and need to change the code of
> df in the above two folders..
>
> I would like to know why there are two df's with diff options in the
> respective folders..
> /usr/bin/df is different is from /usr/xpg4/bin/df!!
>
> Why is it so?? What is this xpg4 represent?
because of: standards(5)
<snip>
Utilities
If the behavior required by POSIX.2, POSIX.2a, XPG4, SUS, or
SUSv2 conflicts with historical Solaris utility behavior,
the original Solaris version of the utility is unchanged; a
new version that is standard-conforming has been provided in
/usr/xpg4/bin. If the behavior required by POSIX.1-2001 or
SUSv3 conflicts with historical Solaris utility behavior, a
new version that is standard-conforming has been provided in
/usr/xpg4/bin or in /usr/xpg6/bin. If the behavior required
by POSIX.1-2001 or SUSv3 conflicts with POSIX.2, POSIX.2a,
SUS, or SUSv2, a new version that is SUSv3 standard-
conforming has been provided in /usr/xpg6/bin.
An application that wants to use standard-conforming utili-
tues must set the PATH (sh(1) or ksh(1)) or path (csh(1))
environment variable to specify the directories listed below
in the order specified to get the appropriate utilities:
SVID3, XPG3
1. /usr/ccs/bin
2. /usr/bin
3. directory containing binaries for your compiler
4. other directories containing binaries needed by
the application
POSIX.2, POSIX.2a, SUS, SUSv2, XPG4
1. /usr/xpg4/bin
2. /usr/ccs/bin
3. /usr/bin
4. directory containing binaries for your compiler
5. other directories containing binaries needed by
the application
<snip end>
---
frankB