Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)
User Commands (m - o) osh(1)
inherited by the child process. Up to 256K bytes of DEFINEs can be inherited.
The actual maximum depends on the size of the PFS for the child process.
If the -defmode off option is used, only the Guardian =_DEFAULTS DEFINE
values inherited by osh are inherited by the child process.
Process Environment
The child process is a session leader and its OSS parent process ID is set to 1. Its Guardian mom,
or its Guardian ancestor if it is a named process, is the osh process that created it.
osh child processes have an initial signal mask in which all signals are defaulted.
The value of the OSS environment variable HOME passed to the child process is the first applica-
ble value from the following list:
1. The content of the Guardian environment HOME PARAM variable, if one is defined.
2. If the -phd option was specified to osh, the initial login directory of the current effective
user ID (PAID) of the parent process as configured on the HP node that runs the child pro-
cess.
3. If the -phd option was not specified to osh, the initial login directory of the parent process
as configured on the HP node that runs the child process.
The initial login directory is determined by looking up the user ID that corresponds to the
login name of the parent process in the authentication database of the node on which the
child process runs. If that user ID matches the real user ID of the child process, then the
initial login directory configured for the user ID of the parent process on the target node is
used as the HOME environment variable value. If the user ID of the parent process does
not match the real user ID of the child process, the initial login directory configured for the
real user ID of the child process is used as the HOME environment variable value.
The value of the OSS environment variable PWD passed to the child process is the first applicable
value from the following list:
1. The content of the Guardian environment PWD PARAM variable, if one is defined.
2. If a logon shell is being created and the -phd option was specfied to osh, the initial login
directory of the current effective user ID (PAID) of the parent process as configured on the
HP node that runs the child process.
3. If a login shell is being created and the -phd option was not specified to osh, the initial
login directory of the parent process as configured on the HP node that runs the child pro-
cess.
The initial login directory is determined by looking up the user ID that corresponds to the
login name of the parent process in the authentication database of the node on which the
child process runs. If that user ID matches the real user ID of the child process, then the
initial login directory configured for the user ID of the parent process on the target node is
used as the PWD environment variable value. If the user ID of the parent process does
not match the real user ID of the child process, the initial login directory configured for the
real user ID of the child process is used as the PWD environment variable value.
4. The current working directory of the parent process (if a login shell is not being created).
The creation of the child process fails when an initial working directory and current working
directory cannot be identified.
527188-021 Hewlett-Packard Company 6−109