Communicator 3000 MPE/iX Release 6.0 (Platform Software Release C.60.00) (30216-90269)
58 Chapter 3
System Management
MPE/iX POSIX Installation Changes
Shell initialization:
/etc/profile is invoked by the POSIX shell whenever the -L info string is
supplied, assuming the user running the shell has execute permission
to this file. /etc/profile contains global initialization for the shell;
whereas, user-specific initialization is accomplished via the user's own
.profile file.
The main enhancement is that /etc/profile supports the execution of a
custom initialization file named /etc/profile.local. If this file exists it is
executed as the final step in /etc/profile. This allows sites to override the
behavior of ./etc/profile, thus impacting all POSIX shell users, but
managed in a central location. /etc/profile.local will never be modified
by POSIX installs or updates. Also, if /etc/profile exists at POSIX install
time, meaning at the time that I0036431.HP36431.SUPPORT is
streamed, it will be renamed to /etc/profile.bak prior to the creation of
this HP supplied version of /etc/profile. This allows you one on-line
backup copy of this important shell initialization file.
Additional /etc/profile enhancements:
• All shell variables defined in /etc/profile will default to a CI variable
of the same name if one exists. This lets you initialize certain shell
variables via LOGON UDCs. The one exception is the PATH shell
variable since it is created within the shell program itself prior to
the execution of /etc/profile. This prevents detection of a previous
PATH variable.
• The MANPATH variable is defined as "/usr/local/man:/usr/man:" if it
has not been previously defined.
• The PATH variable is set to "/usr/local/bin:/bin". Specifically, dot (".")
has been removed from PATH. This implies that users will need to
prefix their local scripts and programs filenames with "./" to execute
them.
• The HISTFILE variable, which defines the location of the shell's
history file, is defined to be "/your account/your group/.sh_history" if
it is not previously defined. If the user does not have a HOME group
then their current group name is used; otherwise their HOME group
name is used.
• The TERM variable is defined to be "hp2392a" unless it has been
defined previously in the CI. If you have defined TERM in the CI as
a qualified file name this will not likely work in the shell. You may
need to re-define TERM in your own .profile file or in the system's
/etc/profile.local file.
• The HOME variable is defined as "/your account/your group" as long
as it has not been defined previously in the CI. If the user does not
have a home group then their logon group name is used; otherwise
their home group name is used.