Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)

User Commands (s) set(1)
noexec Same as n.
noglob Same as f.
nolog Prevents the entry of function denitions into the command history.
notify Same as b.
nounset Same as u.
verbose Same as v.
vi Invokes, in insert mode, a vi-style inline editor until you press Escape (ASCII
033). This changes to move mode. A return sends the line.
viraw Each character is processed as it is entered in vi mode.
xtrace Same as x.
If no option name is supplied, then the current option settings are printed.
s Sorts the positional parameters.
t Exits after reading and executing one command.
u Treats unset parameters as an error when substituting. An interactive shell does not
exit.
v Prints shell input lines to standard error as they are read.
x Prints each command and its arguments to standard error after expanding the command
and before executing it.
- Unsets x and v ags without changing the positional parameters. If other arguments
are present, these arguments are assigned to the positional parameters in order.
(Obsolescent)
-- Does not change any of the ags; useful in setting $1 to a value beginning with -.Ifno
arguments follow this ag, the positional parameters are unset.
These ags can also be used upon invocation of the shell. The current set of ags can
be found in $-. The remaining arguments are positional parameters and are assigned, in
order, to $1 $2 .... If no arguments are given, the names and values of all named
parameters are printed on the standard output. If the only argument is +, the names of
all named parameters are printed.
DESCRIPTION
The set command is used to set various shell commands (listed under the o option below) and to
assign positional parameters.
The ags can also be used upon invocation of the shell. The current set of ags can be found in
$-.
Used without any of its options, the set command returns a list of all the variables that exist in
your environment, local or exported.
If the only argument is +, the names of all named parameters are printed.
The argument argument ... is composed of positional parameters, which are assigned, in order, to
$1 $2 ....
The set command is also used to assign positional parameters.
527188-004 Hewlett-Packard Company 89