
k
ksh(1) |
| ksh(1) |
whence | [ | |
| For each name, indicate how it would be interpreted if used as a command name. The | |
| option produces a more verbose report. The | |
| name is an alias, a function, or a reserved word. | |
Invoking | ksh |
|
If the shell is invoked by | exec (see exec(2)), and the ®rst character of argument zero ($0) is | |
assumed | to be a login | shell and commands are read ®rst from /etc/profile . The expression |
If the | ||
If the | ||
| standard input. Shell output, except for the output of some of the Special Commands | |
| listed above, is written to ®le descriptor 2. | |
If the | ||
| the shell is interactive. In this case SIGTERM is ignored (so that kill 0 does not | |
| kill an interactive shell) and SIGINT +1 is caught and ignored (so that wait is inter- | |
| ruptible). In all cases, SIGQUIT is ignored by the shell. (See signal(5).) | |
If the | ||
The remaining options and arguments are described under the set command above.
rksh Only
rksh is used to set up login names and execution environments where capabilities are more controlled than those of the standard shell. The actions of rksh are identical to those of ksh, except that the following are forbidden:
∙Changing directory (see cd(1))
∙Setting the value of SHELL, ENV, or PATH
∙Specifying path or command names containing /
∙Redirecting output (>, >, <>, and >>)
The restrictions above are enforced after the .profile and ENV ®les are interpreted.
When a command to be executed is found to be a shell procedure, rksh invokes ksh to execute it. Thus, the
When a shell procedure is invoked from rksh, the shell interpreter speci®ed with the #! magic inherits all the restricted features of rksh. So, the shell procedures written for execution under rksh with the intent of utilizing the full power of the standard shell should not specify an interpreter with #!.
These rules effectively give the writer of the .profile ®le complete control over user actions, by performing guaranteed
The system administrator often sets up a directory of commands (usually /usr/rbin) that can be safely invoked by rksh.
Normally, each command line typed at a terminal device is followed by a
The editing features require that the user's terminal accept Return as carriage return without line feed and that a space character must overwrite the current character on the screen. ADM terminal users should set the ``space/advance'' switch to ``space''.
Section 1−412 | − 17 − |