07-28-2005 04:41 PM
UNIX95 is a variable or is a one line method to set a variable temporarily. UNIX95 variable is used to enable special features such as a hierarchical listing of parent or child programs, or to search for a program WITHOUT grep using ps
see man ps
07-28-2005 05:23 PM
UNIX95= ps -o pid,ppid
UNIX95= ps -A
-o option is giving several formats.
07-28-2005 09:19 PM
see also: http://docsrv.sco.com/DIFFS/UNIX95_Conformance.htm
hope this helps!
07-29-2005 12:20 AM
Sometimes, altogether they provide a new option only under UNIX95. This too is done to comply with XPG4.
07-29-2005 01:43 AM
You will most often see the assignment in front of a command such as:
UNIX95= ps -efH
and for POSIX shells, this is a temporary assignment that lasts only for the duration of the command (ps). While it is tempting to simply export UNIX95, DON'T DO IT! UNIX95 affects a lot of other commands and also library calls. Setting UNIX95 globally for your session may cause some programs to work differently. Since there is no index to the affected commands and calls, only set UNIX95 when you need it.
For ps, you can always set it without problems and gain the new options. The simplest way is to create an alias in .profile:
alias ps="UNIX95= /usr/bin/ps"
And now when you login, typing: ps -efH
will work just fine. Be sure to check out the -C option to eliminate grep from ps commands.
07-29-2005 03:48 AM
This is what I have found it most useful for.