set Command set Set shell option flags and positional parameters set [-ceiknstuvx [name ...] ] set changes the options of the current shell sh and optionally sets the values of positional parameters. The shell variable `$- ' contains the currently set shell flags. If the optional name list is given, set assigns the positional parameters $1, $2 ... to the given shell variables. set recognizes the following options: -c string Read shell commands from string. -e Exit on any error (command not found or command returning nonzero status) if the shell is not interactive. -i The shell is interactive, even if the terminal is not at- tached to it; print prompt strings. For a shell reading a script, ignore signals SIGTERM and SIGINT. -k Place all keyword arguments into the environment. Normally, the shell places only assignments to variables preceding the command into the environment. -n Read commands but do not execute them. -s Read commands from the standard input and write shell output to the standard error. -t Read and execute one command rather than the entire file. -u If the actual value of a shell variable is blank, report an error rather than substituting the null string. -v Print each line as it is read. -x Print each command and its arguments as it is executed. - Cancel the -x -v options. The shell executes set directly. ***** See Also ***** commands, sh COHERENT Lexicon Page 1