Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)
Table Of Contents
set(1) OSS Shell and Utilities Reference Manual
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).
8−10 Hewlett-Packard Company 527188-003