Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)
Table Of Contents
set(1) OSS Shell and Utilities Reference Manual
NAME
set - Sets shell options and positional parameters
SYNOPSIS
set [+ | -aCefmnostuvx][+ | -o option ...] [argument ...]
FLAGS
a All subsequent parameters defined are automatically exported.
b Causes the shell to notify the user asynchronously of background job completions
(same as -o notify). When the shell notifies the user a job has been completed, it can
remove the job’s process ID from the list of those known in the current shell execution
environment.
C Prevents existing files from being overwritten by the shell’s > redirection operator
(same as -o noclobber). The >| redirection operator overrides this noclobber option for
an individual file.
e If a command has a nonzero exit status, is not part of the compound list following a
while, until,orif keyword, is not part of an AND or OR list, and is not a pipeline pre-
ceded by the ! reserved word, it executes the ERR trap, if set, and exits. This mode is
disabled while reading profiles.
f Disables pathname expansion.
m Background jobs run in a separate process group and a line prints upon completion.
The exit status of background jobs is reported in a completion message. On systems
with job control, this flag is turned on automatically for interactive shells.
n Reads commands and checks them for syntax errors, but does not execute them.
Ignored for interactive shells.
o The argument can be one of the following option names:
allexport
Same as a.
errexit Same as e.
bgnice Runs all background jobs at a lower priority. This is the default mode.
emacs Invokes an emacs style inline editor for command entry.
gmacs Invokes a gmacs-style inline editor for command entry.
ignoreeof
The interactive shell does not exit on End-of-File. This setting prevents
accidental exit when <Ctrl-D> is entered. The exit command must be used.
markdirs
All directory names resulting from filename generation have a trailing
/ (slash) appended.
monitor Same as m.
noclobber
Prevents redirection > from truncating existing files. Requires >| to truncate
a file when turned on. (Same as C.)
8−8 Hewlett-Packard Company 527188-003