|
|
coherent
set Command set
Set shell option flags and positional parameters
sseett [-cceeiikknnssttuuvvxx [_n_a_m_e ...] ] (Bourne shell)
sseett [[+-]aaeeffhhkkmmnnuuvvxx] [[+-]oo _n_a_m_e] (Korn shell)
sseett changes the options of the current shell and optionally sets
the values of positional parameters. This command is used
implemented by both the Bourne and Korn shells; however, its
syntax and options vary from one shell to the other.
***** Bourne Shell *****
The shell variable `$-' contains the currently set shell flags.
If the optional _n_a_m_e list is given, sseett assigns the positional
parameters $11, $22 ... to the given shell variables.
sseett recognizes the following options:
-cc _s_t_r_i_n_g
Read shell commands from _s_t_r_i_n_g.
-ee Exit on any error (command not found or command returning
nonzero status) if the shell is not interactive.
-ii The shell is interactive, even if the terminal is not
attached to it; print prompt strings. For a shell reading a
script, ignore signals SSIIGGTTEERRMM and SSIIGGIINNTT.
-kk Place all keyword arguments into the environment. Normally,
the shell places only assignments to variables preceding the
command into the environment.
-nn Read commands but do not execute them.
-ss Read commands from the standard input and write shell output
to the standard error.
-tt Read and execute one command rather than the entire file.
-uu If the actual value of a shell variable is blank, report an
error rather than substituting the null string.
-vv Print each line as it is read.
-xx Print each command and its arguments as it is executed.
- Cancel the -xx -vv options.
The shell executes sseett directly.
***** Korn Shell *****
sseett recognizes the following options. Preceding an option with
`-' turns on the option; preceding it with `+' turns it off.
COHERENT Lexicon Page 1
set Command set
-aa aalllleexxppoorrtt: Automatically export all new variables.
-ee eerrrreexxiitt: Exit from the shell when non-zero status is received.
-ff nnoogglloobb: Do not expand file names. This globally turns off the
special meaning of characters `*' and `?'.
-hh ttrraacckkaallll: Automatically add all commands to the shell's hash
table.
-kk kkeeyywwoorrdd: Recognize variable assignments anywhere in a command.
-mm mmoonniittoorr: Enable job control. See the Lexicon article on kksshh
for details on job control and how to use it.
-nn nnooeexxeecc: Compile an input command, but do not execute it.
-oo _o_p_t_i_o_n
Set _o_p_t_i_o_n. sseett recognizes the following _o_p_t_i_o_ns:
aalllleexxppoorrtt
Same as -aa option, above.
eemmaaccss Turn on MicroEMACS-style editing of command lines.
eerrrreexxiitt
Same as -ee option, above.
iiggnnoorreeeeooff
Tell the shell not to exit when reading EOF: must use
eexxiitt command to exit from the shell.
kkeeyywwoorrdd
Same as -kk option, above.
mmoonniittoorr
Same as -mm option, above.
nnooeexxeecc Same as -nn option, above.
nnoogglloobb Same as -ff option, above.
ttrraacckkaallll
Same as -hh option, above.
nnoouunnsseett
Same as -uu option, below.
vveerrbboossee
Same as -vv option, below.
xxttrraaccee Same as -xx option, below.
COHERENT Lexicon Page 2
set Command set
-uu nnoouunnsseett: Treat dollar-sign expansion of an unset variable as
an error.
-vv vveerrbboossee: When compiling a command, echo its compiled (i.e.,
expanded) version on the standard output before executing it.
-xx xxttrraaccee: Echo simple commands while executing.
The shells execute sseett directly.
***** See Also *****
ccoommmmaannddss, kksshh, sshh
COHERENT Lexicon Page 3
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.