10.0;set, revision 1.0, 88/01/21
set -- Set current Shell conditions.
usage: set [ [-b[on] | -boff | -nb[on]]
[-e[on] | -eoff | -ne[on]]
[-v[on] | -voff | -nv[on]]
[-x[on] | -xoff | -nx[on]]
[-c[ommand] arg1...]
[-i[nter] | -s[cript] | -ni[nter]]
[-n[execute | -ex[ecute]]
[-p[rompt]1 prompt_string]
[-p[rompt]2 prompt_string]
[-start [file] | -nstart] ]
OPTIONS
-b[on] Send the output of a background process (created with the
& parsing operator) to the display. The output of the
background process is displayed in the transcript pad of
the shell where it was invoked. If you do not specify -b,
the output of the background process is sent to /dev/null.
-boff (default)
Do not display output from a background process.
-nb[on] (default)
Same as -boff.
-c[ommand] arg1 ...
Execute the following argument(s) as a shell command,
exactly as if it had been read as an input line. If any
argument contains explicit blanks, enclose it in quotation
marks. The shell passes all text following -c to arg1 as
arguments, so if you want to specify other options to the
sh command itself, they must precede -c.
-e[on] Enable evaluation of variables outside of expressions. If
-e is specified, the shell always evaluates variables,
regardless of the context in which they appear. If -e is
not specified, variables are evaluated only inside
variable expression delimiters, ((expression)); otherwise,
the shell treats the ^var_name expressions as strings and
they are not evaluated.
-eoff (default)
Evaluate variables only inside expressions.
-ne[on] (default)
Same as -eoff.
-i[nter] Behave as though input is being entered interactively:
prompt for each input line, and do not exit on errors or
quit faults (DQ or CTRL/Q from keyboard). Normally, the
shell executes interactively only if its input comes from
a pad or SIO-line. Use of this option forces prompting.
-s[cript] (default)
Behave as though executing a shell script: do not prompt
and abort on error. A shell does not normally quit; any
error or quit command is assumed to apply only to the last
command given to the shell.
-ni[nter] (default)
Same as -s.
-n[execute] Interpret each command line only; suppress execution.
-ex[ecute] (default)
Interpret each command line and execute it.
-p[rompt]1 prompt_string
Define the prompt string for the shell created with sh.
=-p[rompt] subprompt_string
Define the subprompt string for the shell created with sh.
(The subprompt appears when you continue a shell command
over more than one line).
-start [file] (default)
Execute the specified script after the shell is created.
If pathname is not specified, the shell searches the log-
in home directory for a file called user_data/sh/startup
and executes it if it exists. No error occurs if that
file does not exist.
-nstart Disable start-up file execution.
-v[on] Display each line of text in the transcript pad as it is
read by the shell program.
-voff (default)
Disable input verification.
-nv[on] (default)
Same as -voff.
-x[on]) Display each command in the transcript pad immediately
before execution. Each command is given in full, with its
complete pathname and with the values of arguments
inserted.
-xoff (default)
Disable input examination.
-nx[on] (default)
Same as -xoff.
EXAMPLES
$ set -p1 'Input> '
Change the current shell's primary prompt to Input> . Note the use of
quotation marks to preserve the trailing blank.
$ set -eon -xon -von
Enable variable evaluation, command examination, and verification.
SEE ALSO
More information is available. Type
help sh For details about the shell