critical impact:
environment variable differences (CrCh156)
Problem description
Some environment variables available on Tru64 UNIX are not supported on HP-UX. If they are supported on HP-UX they might expect different values.
Environment variables such as USER and LOCPATH are supported on Tru64 UNIX, but are not available on HP-UX.
The default or system-supported values for variables such as PATH, MANPATH, NLSPATH, LANG, LC_ALL, and other LC_* environment variables are different on Tru64 UNIX and HP-UX. These environment variables often are used in shell scripts or shell configuration files.
Identifiers
 LANG |
 LOCPATH |
 NLSPATH |
 USER |
|
 LC_ALL |
 MANPATH |
 PATH |
|
|
See also
Solution description
See HP-UX documentation for more information about environment variable differences on Tru64 UNIX and HP-UX.
The most commonly used of these environment variables is USER, which is the user's login name. Use LOGNAME instead on both platforms. On Tru64 UNIX, the login command sets USER and LOGNAME to the same value. On HP-UX, the login command only sets LOGNAME.
Details on the differences in how some environment variables are supported, and recommendations for changes you can make to shell scripts and configuration files, are described in the Migrating from Tru64 UNIX to HP-UX Shells white paper.
See also
Problem summary
| classifications |
source types |
OS release |
severity |
type |
| CMD, SHL |
C, C++, Make, Script |
any HP-UX 11i version |
critical |
changed |
|