Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)
Table Of Contents
User Commands (k - l) ksh(1)
reset_define
Restores the attributes of a DEFINE to their original settings. An HP extension.
return Causes a shell function to return to the invoking script.
set Sets parameters.
set_define
Sets the values for DEFINE attributes. An HP extension.
shift Renames positional parameters.
show_define
Displays values of DEFINE attributes. An HP extension.
times Prints the accumulated user and system times for the shell and for processes run from
the shell.
trap Defines variables to be read and executed when the shell receives the specified signals.
type Returns the location of commands.
typeset Sets attributes and values for shell parameters.
umask Sets the user file-creation mask to mask.
unalias Removes alias definions.
unset Erases values assigned to variables.
wait Waits for the specified process and reports its termination status.
whence Indicates how names would be interpreted if used as commands.
Invocation
If the shell is invoked by exec, and the first character of argument zero ($0)is- (dash), the shell
is assumed to be a login shell and commands are read from /etc/profile and then from either
.profile in the current directory or $HOME/.profile, if either file exists. Next, commands are
read from the file named by performing parameter substitution on the value of the ENV environ-
ment variable, if the file exists. If the -s flag is not present and argument is present, a path search
is performed on the first argument to determine the name of the script to execute. The script
argument must have read permission and any setuid and getgid settings are ignored. Commands
are then read, as described in the following text.
See the FLAGS section for a complete description of flags that can be interpreted by the shell
when it is invoked.
FILES
/etc/profile System profile.
$HOME/.profile User profile.
NOTES
1. If a command is executed, and a command with the same name is installed in a directory
in the search path before the directory where the original command was found, the shell
will execute the original command. Use the hash command to correct this situation.
527188-003 Hewlett-Packard Company 5−29