Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)

set(1) OSS Shell and Utilities Reference Manual
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.
EXAMPLES
1. Following is an example of the set command and its results.
set a b c
The above command assigns a to $1, b to $2, and c to $3. The following command
verifies the values of a, b, and c.
echo $1:$2:$3
a:b:c
NOTES
Parameter assignment lists that precede the command remain in effect when the com-
mand completes.
I/O redirections are processed after parameter assignments.
Errors cause a script that contains the commands so marked to abort.
The set command is a shell built-in command. It differs from the regular commands in that it
does not open a new shell process when it executes.
A general discussion of shell built-in commands and a list of the OSS shell built-in commands
are in the reference page for sh(1).
RELATED INFORMATION
Commands: sh(1), unset(1).
810 Hewlett-Packard Company 527188-021