Defaults in the user environment
The POSIX shell is started following successful access to the POSIX subsystem. Before the POSIX shell prompt appears, the following defaults are set in the user environment:
The POSIX shell initializes the standard shell variables. It assigns default values to the following shell variables:
HOME, HZ, IO_CONVERSION, LANG, LOGNAME, MAIL, PATH, PROGRAM_ENVIRONMENT, PS1, PWD, SHELL, TERM, TTY, TZ and USER.
If a variable <x> is already defined by the BS2000 S variable SYSPOSIX.<x>, this value is used. The shell variables HOME, HZ, LOGNAME, MAIL, TERM, TTY and USER must not be set by the user.The /etc/profile file is executed.
The $HOME/.profile file is executed, if it has been created.
Special functions (P keys, Ctrl)
You can assign functions to the P keys P3, P4 and P5 by calling the POSIX command bs2pkey as follows:
P3 | with @@c (CTRL + C) |
P4 | with @@c (CTRL + D) |
P5 | with @@z (CTRL + Z) |
The program can either be called in the POSIX shell (without options) or placed in the /etc/profile file. In the latter case, the program is activated every time the shell is called.