Open System Services Porting Guide (G06.24+, H06.03+)

Table Of Contents
Interoperating Between User Environments
Open System Services Porting Guide520573-006
4-5
Factors Affecting Shell Operation
Factors Affecting Shell Operation
The factors described in the following subsections affect shell operation for the
interactive OSS user:
Shell Start-Up Files on page 4-5
Option Values on page 4-5
Variable Values on page 4-6
Aliases and Functions on page 4-6
stty Settings on page 4-7
Line and History Editing on page 4-7
Shell Start-Up Files
The start-up procedure for the OSS shell is the same as the procedure for a UNIX Korn
shell. If the shell is a login shell (the OSS shell is considered a login shell when the
OSH utility is specified with the -ls option or with no options), the commands in the
following start-up files are executed:
/etc/profile (analogous to the /etc/.cshrc C shell file)
$HOME/.profile (analogous to the $HOME/.login C shell file)
If you use the OSH utility with the +ls option, the OSS shell is not a login shell. If you
use the OSH utility with the -p or -prog option, the +ls option is the default.
If you use the OSH utility without the -p or -prog option, the -ls option is the default
option, and the /bin/sh file is executed as a login shell.
Normally, /etc/profile and $HOME/.profile contain global modifications for
your environment, such as options, variables, stty settings, and alias and function
settings.
Option Values
You can set and reset option values using the set built-in command with the -o
option. These values determine the way the shell operates in certain conditions. (Many
of the option values are equivalent to the C shell variables, such as ignoreof,
noglob, and verbose.)
For example, the value of the noclobber option specifies the action the shell should
take when a user causes output to be redirected to an existing file using the right
angle bracket (>). When noclobber is set to OFF, the command is aborted; when set