> 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? >
http://en.wikipedia.org/wiki/XPG4 The versions in /usr/bin are for backwards compatibility with what has been on Solaris since the commands first appeared on Solaris (or since Solaris 2.0, or even SunOS 4.x before it). The versions in /usr/xpg4 (or sometimes even /usr/xpg6, although I'm not sure that name makes much sense; actually, xpg6=SUSv3, I think) are for standards compliance (with standards that are typically a superset of POSIX). It should never be assumed that some specific (if customary) location, like /usr/bin, contains the standards compliant version of commands; rather, they should be found using the search path returned by the command getconf PATH Thus, there's nothing strange about the backwards compatible (rather than the standards compliant) commands living in the customary location (/usr/bin). This message posted from opensolaris.org _______________________________________________ opensolaris-help mailing list [email protected]
